-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
No stdout from beforeEach/afterEach when failing test and --no-isolate --no-file-parallelism
#6682
Comments
Setup file is run only once for the test runner due to But |
Worth mentioning this mode also breaks |
How is that related? You need isolation for tests that are manipulating the DOM. That setup is not using |
--no-isolate --no-file-parallelism
--no-isolate --no-file-parallelism
It's (should be) called internally by
Why? Shouldn't it work if you disable file parallelism? Isn't that essentially how e.g. |
They don't accept issues related to the dom query API in the |
Surprisingly, the behavior is different if you have This isn't probably intended. Module cache invalidation here needs to consider resolution vitest/packages/vitest/src/runtime/runners/test.ts Lines 35 to 40 in 5e6de27
For the issue with testing-library's cleanup hooks #1430, that one might be already fixed by #6689 |
btw, testing-library/dom-testing-library#1337 is not caused by the |
Edit: In the end, we managed to work around it with: https://vitest.dev/api/#ontestfinished |
Describe the bug
Logs from
beforeEach
/afterEach
are missing when I run my tests with--no-isolate --no-file-parallelism
and one of the suites has a failing testReproduction
pnpm test run
pnpm test run -- --no-isolate --no-file-parallelism
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: