Skip to content

feat(dom-adapters): basic inline tool adapter implementation #92

feat(dom-adapters): basic inline tool adapter implementation

feat(dom-adapters): basic inline tool adapter implementation #92

Triggered via pull request August 27, 2024 23:53
Status Failure
Total duration 48s
Artifacts

playground.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

27 errors and 13 warnings
build
'IndexBuilder' is declared but its value is never read.
build
'#name' is declared but its value is never read.
build
Unable to resolve signature of class decorator when called as an expression.
build
Unable to resolve signature of class decorator when called as an expression.
build
Unable to resolve signature of class decorator when called as an expression.
build
'options' is declared but its value is never read.
build
'intersectType' is declared but its value is never read.
build
Unable to resolve signature of class decorator when called as an expression.
build
'createDataKey' is declared but its value is never read.
build
'#caretAdapter' is declared but its value is never read.
lint: packages/playground/src/App.vue#L5
'createDataKey' is defined but never used
lint: packages/playground/src/App.vue#L5
'createDataKey' is defined but never used
lint: packages/playground/src/App.vue#L79
Missing semicolon
lint: packages/playground/src/components/Toolbar/Toolbar.vue#L22
Elements in iteration expect to have 'v-bind:key' directives
lint: packages/playground/src/components/Toolbar/index.ts#L1
All imports in the declaration are only used as types. Use `import type`
lint: packages/playground/src/components/Toolbar/index.ts#L2
Imports "EditorJSModel" and "TextRange" are only used as types
lint: packages/playground/src/components/Toolbar/index.ts#L3
All imports in the declaration are only used as types. Use `import type`
EditorDocument > .format() > should call .format() method of the BlockNode: packages/model/src/entities/EditorDocument/EditorDocument.spec.ts#L850
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected) Expected: "text", "bold", 5, 10, undefined Received: "text", "bold", 5, 10, undefined, undefined Number of calls: 1 at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/model/src/entities/EditorDocument/EditorDocument.spec.ts:856:10) at Promise.then.completed (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:121:9) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/testWorker.js:106:12)
EditorDocument > .format() > should pass data to the .format() method of the BlockNode: packages/model/src/entities/EditorDocument/EditorDocument.spec.ts#L859
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected) - Expected + Received "text", "bold", 5, 10, {}, + undefined, Number of calls: 1 at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/model/src/entities/EditorDocument/EditorDocument.spec.ts:866:10) at Promise.then.completed (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:121:9) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/testWorker.js:106:12)
BlockNode > .format() > should call .format() method of the TextNode: packages/model/src/entities/BlockNode/BlockNode.spec.ts#L834
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected) Expected: "bold", 5, 10, undefined Received: "bold", 5, 10, undefined, undefined Number of calls: 1 at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/model/src/entities/BlockNode/BlockNode.spec.ts:847:10) at Promise.then.completed (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:121:9) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/testWorker.js:106:12)
BlockNode > .format() > should call .format() method of the TextNode in an object: packages/model/src/entities/BlockNode/BlockNode.spec.ts#L850
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected) Expected: "bold", 5, 10, undefined Received 1: "bold", 5, 10, undefined, undefined 2: "bold", 5, 10, undefined, undefined Number of calls: 2 at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/model/src/entities/BlockNode/BlockNode.spec.ts:865:10) at Promise.then.completed (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:121:9) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/testWorker.js:106:12)
BlockNode > .format() > should call .format() method of the TextNode in an array in an object: packages/model/src/entities/BlockNode/BlockNode.spec.ts#L868
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected) Expected: "bold", 5, 10, undefined Received 1: "bold", 5, 10, undefined, undefined 2: "bold", 5, 10, undefined, undefined 3: "bold", 5, 10, undefined, undefined Number of calls: 3 at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/model/src/entities/BlockNode/BlockNode.spec.ts:885:10) at Promise.then.completed (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:121:9) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/testWorker.js:106:12)
BlockNode > .format() > should call .format() method of the TextNode in an array: packages/model/src/entities/BlockNode/BlockNode.spec.ts#L888
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected) Expected: "bold", 5, 10, undefined Received 1: "bold", 5, 10, undefined, undefined 2: "bold", 5, 10, undefined, undefined 3: "bold", 5, 10, undefined, undefined Number of calls: 4 at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/model/src/entities/BlockNode/BlockNode.spec.ts:903:10) at Promise.then.completed (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:121:9) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/testWorker.js:106:12)
BlockNode > .format() > should pass data to the .format() method of the TextNode: packages/model/src/entities/BlockNode/BlockNode.spec.ts#L906
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected) Expected: "bold", 5, 10, {} Received 1: "bold", 5, 10, undefined, undefined 2: "bold", 5, 10, undefined, undefined 3: "bold", 5, 10, undefined, undefined Number of calls: 5 at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/model/src/entities/BlockNode/BlockNode.spec.ts:920:10) at Promise.then.completed (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/utils.js:298:28) at new Promise (<anonymous>) at callAsyncCircusFn (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/utils.js:231:10) at _callCircusTest (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:316:40) at processTicksAndRejections (node:internal/process/task_queues:95:5) at _runTest (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:252:3) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:126:9) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:121:9) at _runTestsForDescribeBlock (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:121:9) at run (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/run.js:71:3) at runAndTransformResultsToJestFormat (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21) at jestAdapter (/home/runner/work/document-model/document-model/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19) at runTestInternal (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/runTest.js:367:16) at runTest (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/runTest.js:444:34) at Object.worker (/home/runner/work/document-model/document-model/node_modules/jest-runner/build/testWorker.js:106:12)
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint: packages/playground/src/App.vue#L5
A space is required after ','
lint: packages/playground/src/App.vue#L5
A space is required after ','
lint: packages/playground/src/App.vue#L8
Trailing spaces not allowed
lint: packages/playground/src/App.vue#L21
Expected blank line before this statement
lint: packages/playground/src/App.vue#L36
Expected blank line before this statement
lint: packages/playground/src/App.vue#L43
There should be no space after '['
lint: packages/playground/src/App.vue#L43
There should be no space before ']'
lint: packages/playground/src/App.vue#L124
Trailing spaces not allowed
lint: packages/playground/src/components/Toolbar/Toolbar.vue#L18
Trailing spaces not allowed
lint: packages/playground/src/components/Toolbar/Toolbar.vue#L19
Trailing spaces not allowed