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
For testing using store.transition it would be very useful if effects could be named.
Taking this example https://stately.ai/docs/xstate-store#pure-transitions
At the moment effects contains Function, which is not very useful in tests.
It would be great if test could asserts what effects are being run.
Something like (note the second parameter to enqueue.effect:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
For testing using
store.transitionit would be very useful if effects could be named.Taking this example https://stately.ai/docs/xstate-store#pure-transitions
At the moment
effectscontainsFunction, which is not very useful in tests.It would be great if test could asserts what effects are being run.
Something like (note the second parameter to
enqueue.effect:Then on the test
Beta Was this translation helpful? Give feedback.
All reactions