Skip to content

imp(): implement all operations transformations #477

imp(): implement all operations transformations

imp(): implement all operations transformations #477

Triggered via pull request April 18, 2025 18:45
Status Success
Total duration 1m 37s
Artifacts

model.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 7 warnings
Operation > .transform() > should not change operation if data keys are different: packages/collaboration-manager/src/Operation.spec.ts#L54
Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 2 @@ -7,12 +7,12 @@ "blockIndex": 0, "dataKey": "text", "documentId": undefined, "propertyName": undefined, "textRange": Array [ - 0, - 0, + 3, + 3, ], "tuneKey": undefined, "tuneName": undefined, }, "rev": undefined, at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/Operation.spec.ts:62:29) 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)
Operation > .transform() > should not change operation if operation is not Block or Text operation: packages/collaboration-manager/src/Operation.spec.ts#L65
Error: Unsupported index type at OperationsTransformer.#applyTransformation (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/OperationsTransformer.ts:55:15) at OperationsTransformer.transform (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/OperationsTransformer.ts:19:37) at Operation.transform (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/Operation.ts:224:30) at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/Operation.spec.ts:71:40) 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)
Operation > .transform() > should throw an error if unsupported operation type is provided: packages/collaboration-manager/src/Operation.spec.ts#L76
Error: expect(received).toThrow(expected) Expected substring: "Unsupported operation type" Received function did not throw at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/Operation.spec.ts:81:51) 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)
Operation > .transform() > Transformation relative to Insert operation > should not change the operation if local op is a Block operation after a received one: packages/collaboration-manager/src/Operation.spec.ts#L128
Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 @@ -9,11 +9,11 @@ }, ], "prevPayload": null, }, "index": Index { - "blockIndex": 0, + "blockIndex": 1, "dataKey": undefined, "documentId": undefined, "propertyName": undefined, "textRange": undefined, "tuneKey": undefined, at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/Operation.spec.ts:140:31) 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 _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)
Operation > .transform() > Transformation relative to Insert operation > should adjust the block index if local op is a Block operation before a received one: packages/collaboration-manager/src/Operation.spec.ts#L143
Error: expect(received).toEqual(expected) // deep equality Expected: 2 Received: 1 at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/Operation.spec.ts:155:49) 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 _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)
Operation > .transform() > Transformation relative to Insert operation > should adjust the block index if local op is a Block operation at the same index as a received one: packages/collaboration-manager/src/Operation.spec.ts#L158
Error: expect(received).toEqual(expected) // deep equality Expected: 1 Received: 0 at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/Operation.spec.ts:170:49) 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 _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)
Operation > .transform() > Transformation relative to Delete operation > should not change the operation if local op is a Block operation after a received one: packages/collaboration-manager/src/Operation.spec.ts#L221
Error: expect(received).toEqual(expected) // deep equality - Expected - 10 + Received + 2 Operation { "data": Object { - "payload": Array [ - Object { - "data": Object { - "text": "abc", - }, - "name": "paragraph", + "payload": Array [], }, - ], - "prevPayload": null, - }, "index": Index { "blockIndex": 0, "dataKey": undefined, "documentId": undefined, "propertyName": undefined, "textRange": undefined, "tuneKey": undefined, "tuneName": undefined, }, "rev": undefined, - "type": "insert", + "type": "neutral", "userId": "user", } at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/Operation.spec.ts:233:31) 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 _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)
Operation > .transform() > Transformation relative to Delete operation > should adjust the block index if local op is a Block operation before a received one: packages/collaboration-manager/src/Operation.spec.ts#L236
Error: expect(received).toEqual(expected) // deep equality Expected: 0 Received: 1 at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/Operation.spec.ts:248:49) 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 _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)
Operation > .transform() > Transformation relative to Delete operation > should adjust the block index if local op is a Block operation at the same index as a received one: packages/collaboration-manager/src/Operation.spec.ts#L251
Error: expect(received).toEqual(expected) // deep equality Expected: 0 Received: 1 at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/Operation.spec.ts:263:49) 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 _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)
Operation > .transform() > Transformation relative to Delete operation > should return null if the transformed text range becomes negative: packages/collaboration-manager/src/Operation.spec.ts#L266
Error: expect(received).toBeNull() Received: {"data": {"payload": "abc", "prevPayload": null}, "index": {"blockIndex": 0, "dataKey": "text", "documentId": undefined, "propertyName": undefined, "textRange": [-7, -7], "tuneKey": undefined, "tuneName": undefined}, "rev": undefined, "type": "delete", "userId": "user"} at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/Operation.spec.ts:271:31) 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 _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)
Operation > .transform() > Transformation relative to Delete operation > should return null if the transformed text range becomes negative for Insert operation: packages/collaboration-manager/src/Operation.spec.ts#L274
Error: expect(received).toBeNull() Received: {"data": {"payload": "abc", "prevPayload": null}, "index": {"blockIndex": 0, "dataKey": "text", "documentId": undefined, "propertyName": undefined, "textRange": [-7, -7], "tuneKey": undefined, "tuneName": undefined}, "rev": undefined, "type": "insert", "userId": "user"} at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/Operation.spec.ts:279:31) 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 _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)
CollaborationManager > should redo batch: packages/collaboration-manager/src/CollaborationManager.spec.ts#L859
Error: expect(received).toStrictEqual(expected) // deep equality - Expected - 1 + Received + 1 @@ -3,11 +3,11 @@ Object { "data": Object { "text": Object { "$t": "t", "fragments": Array [], - "value": "test", + "value": "tste", }, }, "name": "paragraph", "tunes": Object {}, }, at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/CollaborationManager.spec.ts:895:30) 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 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)
CollaborationManager > remote operations > should clear current batch if not transformable with remote operation: packages/collaboration-manager/src/CollaborationManager.spec.ts#L1008
Error: Index -7 is not in valid range [0, 7] at TextNode.validateIndex (/home/runner/work/document-model/document-model/packages/model/dist/entities/inline-fragments/ParentInlineNode/index.js:252:19) at TextNode.validateIndex (/home/runner/work/document-model/document-model/packages/model/dist/entities/inline-fragments/ParentInlineNode/index.js:237:14) at TextNode.validateRange [as removeText] (/home/runner/work/document-model/document-model/packages/model/dist/entities/inline-fragments/ParentInlineNode/index.js:62:14) at BlockNode.removeText (/home/runner/work/document-model/document-model/packages/model/dist/entities/BlockNode/index.js:208:21) at EditorDocument.removeText (/home/runner/work/document-model/document-model/packages/model/dist/entities/EditorDocument/index.js:244:43) at EditorDocument.removeText (/home/runner/work/document-model/document-model/packages/model/dist/entities/EditorDocument/index.js:330:22) at EditorJSModel.removeData (/home/runner/work/document-model/document-model/packages/model/dist/EditorJSModel.js:188:24) at apply (/home/runner/work/document-model/document-model/packages/model/dist/utils/Context.js:37:61) at fn (/home/runner/work/document-model/document-model/packages/model/dist/utils/Context.js:12:16) at EditorJSModel.runWithContext (/home/runner/work/document-model/document-model/packages/model/dist/utils/Context.js:37:16) at CollaborationManager.removeData [as applyOperation] (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/CollaborationManager.ts:162:21) at applyOperation (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/CollaborationManager.ts:148:47) at Array.forEach (<anonymous>) at CollaborationManager.forEach [as applyOperation] (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/CollaborationManager.ts:148:28) at CollaborationManager.applyOperation [as undo] (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/CollaborationManager.ts:105:10) at Object.<anonymous> (/home/runner/work/document-model/document-model/packages/collaboration-manager/src/CollaborationManager.spec.ts:1049:28) 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)