You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @davidkpiano, we are running into the same issue on @xstate/[email protected]. Also, using the same example repo from above, we see the following TS errors (rename index.js to index.ts):
Type '{ on: { TWO: string; THREE: string; }; }' is missing the following properties from type 'TestStateNodeConfig<MachineContext, AnyEventObject>': type, history, onDone, entry, and 7 more.ts(2740)
I've discovered a bug in the documentation. You should use getShortestPaths and not getPaths. I've read in the Changelog that getPath is an alias of the getShortestPaths so it works the same
Description
.getPaths()
doesn't work.https://stately.ai/docs/xstate/model-based-testing/quickstart
My package.json dependencies
script.js
Expected result
.getPaths
to workActual result
It does not work
Reproduction
https://github.com/Osky772/xstate-test-bug
Additional context
No response
The text was updated successfully, but these errors were encountered: