We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In this thread I explained what I expected the behavoir to be. David recommended I post this here.
Suppose I have a straightforward model:
const machine = createTestMachine({ id: "commandPaletteMachineTest", initial: "closed", states: { closed: { on: { "control p": { target: "open", }, }, }, open: { on: { "keypress Escape": { target: "closed", }, }, }, }, });
Jest console renders something like this:
✓ Reaches state "#commandPaletteMachineTest.closed": control p → keypress Escape (89 ms)
This makes sense. I have "description" keys on each state so I'd expect if I update the previous to:
open: { on: { "keypress Escape": { description: "cool message for the console!" target: "closed", }, }, },
I would get something like:
✓ Reaches state "#commandPaletteMachineTest.closed": control p → keypress Escape "cool message for the console!" (89 ms)
The expected result is descriptions appear in the jest console.
There was no description in the jest console.
none
No response
The text was updated successfully, but these errors were encountered:
davidkpiano
Successfully merging a pull request may close this issue.
Description
In this thread I explained what I expected the behavoir to be. David recommended I post this here.
Suppose I have a straightforward model:
Jest console renders something like this:
✓ Reaches state "#commandPaletteMachineTest.closed": control p → keypress Escape (89 ms)
This makes sense. I have "description" keys on each state so I'd expect if I update the previous to:
I would get something like:
Expected result
The expected result is descriptions appear in the jest console.
Actual result
There was no description in the jest console.
Reproduction
none
Additional context
No response
The text was updated successfully, but these errors were encountered: