Skip to content

Jest Testing with async errors #904

Discussion options

You must be logged in to vote

You can instantiate a regular store in a test and call the action and check the returned value:

expect(await store.registerUser(...)).toEqual(...)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nathanthibert
Comment options

Answer selected by nathanthibert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants