Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapshots broken when using concurrent and local context #4782

Closed
6 tasks done
martypdx opened this issue Dec 19, 2023 · 1 comment · Fixed by #4796
Closed
6 tasks done

Snapshots broken when using concurrent and local context #4782

martypdx opened this issue Dec 19, 2023 · 1 comment · Fixed by #4796

Comments

@martypdx
Copy link

Describe the bug

In the ongoing quest to get snapshot tests working, I found a simple working reproduction for issue.

Related: #2327 #4661 #1376 #4177
Maybe related: #1468 #2077 #2729 ##3360

Reproduction

StackBlitz reproduction

describe.concurrent with 3 test each writing an inline snapshot. Will not update the first test. Remove .concurrent and updates inline snapshot. Behavior is the same if .concurrent is on on tests.

Interestingly, it knows there is an obsolete snapshot:

image

System Info

StackBlitz
https://stackblitz.com/edit/vitest-dev-vitest-2fucz2?file=test%2Frepo.test.ts

Used Package Manager

npm

Validations

@martypdx
Copy link
Author

Added PR with failing test for this #4783

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
1 participant