Model based testing - @xstate/test or @xstate/graph #5286
Unanswered
dsathyakumar
asked this question in
Q&A
Replies: 1 comment
-
I'm currently working on bring the graph/test utils to core XState: #5287 Then I will make a working example. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I'd really like a working example of model based testing.
For instance, I was able to get the basic feedback modal example working with xstate@^4 and @xstate/test.
But when i switched to xstate@^5, @xstate/test would no longer work.
Looking through a number of responses and comments online - the suggestion was to use @xstate/graph package instead.
However, I could not get a working example up & running for xstate@^5 and @xstate/graph together and most of the LLM responses said that @xstate/graph only offered an api that output the paths and did not yet have an extensive testing suite as the previous @xstate/test package. Looking online, @xstate/test appears to be in some form of beta, with no docs.
Could one of your give a clear picture as to how and what package I can use to achieve the same model based testing with xstate^5. I obviously dont want to be stuck with v4 just for model based testing.
CC @davidkpiano
Beta Was this translation helpful? Give feedback.
All reactions