feat: add state machines #106
Annotations
18 errors
Unhandled error:
node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js#L310
Error: Unable to send event to actor '#_parent' from machine 'document-mutator'.
❯ Function.resolveSendTo [as resolve] node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js:310:13
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2345:56
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2361:30
❯ resolveActionsAndContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2368:21
❯ microstep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2101:15
❯ Module.macrostep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2427:20
❯ StateMachine.transition node_modules/.pnpm/[email protected]/node_modules/xstate/dist/xstate.development.esm.js:464:34
❯ Actor._process node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:863:30
❯ Mailbox.flush node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:44:12
❯ Mailbox.enqueue node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:36:12
This error originated in "src/machine/__tests__/documentMutatorMachine.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "src/machine/__tests__/documentMutatorMachine.test.ts". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
src/machine/__tests__/documentMutatorMachine.test.ts > observing documents > observing a document that does not exist on the backend:
node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js#L310
Error: Unable to send event to actor '#_parent' from machine 'document-mutator'.
❯ Function.resolveSendTo [as resolve] node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js:310:13
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2345:56
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2361:30
❯ resolveActionsAndContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2368:21
❯ microstep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2101:15
❯ Module.macrostep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2427:20
❯ StateMachine.transition node_modules/.pnpm/[email protected]/node_modules/xstate/dist/xstate.development.esm.js:464:34
❯ Actor._process node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:863:30
❯ Mailbox.flush node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:44:12
❯ Mailbox.enqueue node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:36:12
|
src/machine/__tests__/documentMutatorMachine.test.ts > observing documents > observing a document that exist on the backend:
node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js#L310
Error: Unable to send event to actor '#_parent' from machine 'document-mutator'.
❯ Function.resolveSendTo [as resolve] node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js:310:13
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2345:56
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2361:30
❯ resolveActionsAndContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2368:21
❯ microstep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2101:15
❯ Module.macrostep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2427:20
❯ StateMachine.transition node_modules/.pnpm/[email protected]/node_modules/xstate/dist/xstate.development.esm.js:464:34
❯ Actor._process node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:863:30
❯ Mailbox.flush node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:44:12
❯ Mailbox.enqueue node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:36:12
|
src/machine/__tests__/documentMutatorMachine.test.ts > observing documents > observing a document that doesn't exist initially, but later is created:
node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js#L310
Error: Unable to send event to actor '#_parent' from machine 'document-mutator'.
❯ Function.resolveSendTo [as resolve] node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js:310:13
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2345:56
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2361:30
❯ resolveActionsAndContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2368:21
❯ microstep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2101:15
❯ Module.macrostep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2427:20
❯ StateMachine.transition node_modules/.pnpm/[email protected]/node_modules/xstate/dist/xstate.development.esm.js:464:34
❯ Actor._process node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:863:30
❯ Mailbox.flush node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:44:12
❯ Mailbox.enqueue node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:36:12
|
src/machine/__tests__/documentMutatorMachine.test.ts > observing documents > observing a document that doesn't exist initially, but later is created, much much later:
node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js#L310
Error: Unable to send event to actor '#_parent' from machine 'document-mutator'.
❯ Function.resolveSendTo [as resolve] node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js:310:13
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2345:56
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2361:30
❯ resolveActionsAndContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2368:21
❯ microstep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2101:15
❯ Module.macrostep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2427:20
❯ StateMachine.transition node_modules/.pnpm/[email protected]/node_modules/xstate/dist/xstate.development.esm.js:464:34
❯ Actor._process node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:863:30
❯ Mailbox.flush node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:44:12
❯ Mailbox.enqueue node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:36:12
|
src/machine/__tests__/documentMutatorMachine.test.ts > observing documents > observing a document that doesn't exist initially, but is created before the document is fetched:
node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js#L310
Error: Unable to send event to actor '#_parent' from machine 'document-mutator'.
❯ Function.resolveSendTo [as resolve] node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js:310:13
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2345:56
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2361:30
❯ resolveActionsAndContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2368:21
❯ microstep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2101:15
❯ Module.macrostep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2427:20
❯ StateMachine.transition node_modules/.pnpm/[email protected]/node_modules/xstate/dist/xstate.development.esm.js:464:34
❯ Actor._process node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:863:30
❯ Mailbox.flush node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:44:12
❯ Mailbox.enqueue node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:36:12
|
src/machine/__tests__/documentMutatorMachine.test.ts > local mutations > mutating a document that does not exist on the backend:
node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js#L310
Error: Unable to send event to actor '#_parent' from machine 'document-mutator'.
❯ Function.resolveSendTo [as resolve] node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js:310:13
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2345:56
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2361:30
❯ resolveActionsAndContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2368:21
❯ microstep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2101:15
❯ Module.macrostep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2427:20
❯ StateMachine.transition node_modules/.pnpm/[email protected]/node_modules/xstate/dist/xstate.development.esm.js:464:34
❯ Actor._process node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:863:30
❯ Mailbox.flush node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:44:12
❯ Mailbox.enqueue node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:36:12
|
src/machine/__tests__/documentMutatorMachine.test.ts > local mutations > observing a document that doesn't exist initially, but later is created locally:
node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js#L310
Error: Unable to send event to actor '#_parent' from machine 'document-mutator'.
❯ Function.resolveSendTo [as resolve] node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js:310:13
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2345:56
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2361:30
❯ resolveActionsAndContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2368:21
❯ microstep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2101:15
❯ Module.macrostep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2427:20
❯ StateMachine.transition node_modules/.pnpm/[email protected]/node_modules/xstate/dist/xstate.development.esm.js:464:34
❯ Actor._process node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:863:30
❯ Mailbox.flush node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:44:12
❯ Mailbox.enqueue node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:36:12
|
src/machine/__tests__/documentMutatorMachine.test.ts > local mutations > error when creating a document locally using 'create', when it turns out later that it exists on the server :
src/machine/__tests__/documentMutatorMachine.test.ts#L354
Error: Snapshot `local mutations > error when creating a document locally using 'create', when it turns out later that it exists on the server 1` mismatched
Expected: "[Error: Document already exist]"
Received: "[Error: Unable to send event to actor '#_parent' from machine 'document-mutator'.]"
❯ src/machine/__tests__/documentMutatorMachine.test.ts:354:19
|
src/machine/__tests__/documentMutatorMachine.test.ts > remote mutations > it applies mendoza patches correctly:
node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js#L310
Error: Unable to send event to actor '#_parent' from machine 'document-mutator'.
❯ Function.resolveSendTo [as resolve] node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js:310:13
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2345:56
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2361:30
❯ resolveActionsAndContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2368:21
❯ microstep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2101:15
❯ Module.macrostep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2427:20
❯ StateMachine.transition node_modules/.pnpm/[email protected]/node_modules/xstate/dist/xstate.development.esm.js:464:34
❯ Actor._process node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:863:30
❯ Mailbox.flush node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:44:12
❯ Mailbox.enqueue node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:36:12
|
src/machine/__tests__/documentMutatorMachine.test.ts > local mutations > mutating a document that does not exist on the backend:
node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js#L310
Error: Unable to send event to actor '#_parent' from machine 'document-mutator'.
❯ Function.resolveSendTo [as resolve] node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js:310:13
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2345:56
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2361:30
❯ resolveActionsAndContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2368:21
❯ microstep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2101:15
❯ Module.macrostep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2427:20
❯ StateMachine.transition node_modules/.pnpm/[email protected]/node_modules/xstate/dist/xstate.development.esm.js:464:34
❯ Actor._process node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:863:30
❯ Mailbox.flush node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:44:12
❯ Mailbox.enqueue node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:36:12
|
src/machine/__tests__/documentMutatorMachine.test.ts > local mutations > observing a document that doesn't exist initially, but later is created locally:
node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js#L310
Error: Unable to send event to actor '#_parent' from machine 'document-mutator'.
❯ Function.resolveSendTo [as resolve] node_modules/.pnpm/[email protected]/node_modules/xstate/dist/log-ef30c65f.development.esm.js:310:13
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2345:56
❯ resolveAndExecuteActionsWithContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2361:30
❯ resolveActionsAndContext node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2368:21
❯ microstep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2101:15
❯ Module.macrostep node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:2427:20
❯ StateMachine.transition node_modules/.pnpm/[email protected]/node_modules/xstate/dist/xstate.development.esm.js:464:34
❯ Actor._process node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:863:30
❯ Mailbox.flush node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:44:12
❯ Mailbox.enqueue node_modules/.pnpm/[email protected]/node_modules/xstate/dist/raise-1db27a82.development.esm.js:36:12
|
src/machine/__tests__/documentMutatorMachine.test.ts > local mutations > error when creating a document locally using 'create', when it turns out later that it exists on the server :
src/machine/__tests__/documentMutatorMachine.test.ts#L331
TypeError: Promise.withResolvers is not a function
❯ src/machine/__tests__/documentMutatorMachine.test.ts:331:40
|
src/machine/__tests__/documentMutatorMachine.test.ts > remote mutations > it applies mendoza patches correctly:
src/machine/__tests__/documentMutatorMachine.test.ts#L361
TypeError: Promise.withResolvers is not a function
❯ src/machine/__tests__/documentMutatorMachine.test.ts:361:40
|
src/machine/__tests__/documentMutatorMachine.test.ts > remote mutations > it handles skipping mendoza patches that are already applied:
src/machine/__tests__/documentMutatorMachine.test.ts#L385
TypeError: Promise.withResolvers is not a function
❯ src/machine/__tests__/documentMutatorMachine.test.ts:385:40
|
src/machine/__tests__/documentMutatorMachine.test.ts > remote mutations > it handles a document that is created after the initial snapshot:
src/machine/__tests__/documentMutatorMachine.test.ts#L409
TypeError: Promise.withResolvers is not a function
❯ src/machine/__tests__/documentMutatorMachine.test.ts:409:40
|
src/machine/__tests__/documentMutatorMachine.test.ts > remote mutations > it handles disappearing documents:
src/machine/__tests__/documentMutatorMachine.test.ts#L473
TypeError: Promise.withResolvers is not a function
❯ src/machine/__tests__/documentMutatorMachine.test.ts:473:40
|
Test (ubuntu-latest / node lts/-1)
Process completed with exit code 1.
|