Skip to content

Objects deleted from stores re-appearing while running tests #2666

Discussion options

You must be logged in to vote

The problem is your defaultFormations. It's reused for all stores because it's a reference in js. Create a copy with ref({ ...defaultFormations }) or export a function that returns a fresh object rather than the object itself.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@posva
Comment options

@chris-reeves
Comment options

@posva
Comment options

Answer selected by chris-reeves
@chris-reeves
Comment options

@posva
Comment options

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