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
Concurrent testing breaks snapshot assertions #551
Comments
Yes this is the limitation of JS as you can't keep the context in async concurrent execution. I am not sure if there is a solution to that (similar to Vue's async |
I think we can bind |
Yes, there is a pending pr for it #900 |
Bumped into this while trying to migrate from jest. Is there a workaround? |
You might get some mileage on newer versions of node with AsyncLocalStorage |
@antfu I love this solution! Do you think that you will move more stuff into this model of explicit context? I'm thinking of how the |
It's useful |
Describe the bug
When using snapshot assertions and concurrent tests, I get this error:
Reproduction
System Info
The text was updated successfully, but these errors were encountered: