-
Notifications
You must be signed in to change notification settings - Fork 12k
vitest: error when a file contains several tests #30186
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
Comments
This issue occurs because |
Ensure proper cleanup of the Angular testing module when running tests with Vitest. Closes: angular#30186
Ensure proper cleanup of the Angular testing module when running tests with Vitest. Closes: angular#30186
You can also add a
|
Ensure proper cleanup of the Angular testing module when running tests with Vitest. Closes: angular#30186
Ensure proper cleanup of the Angular testing module when running tests with Vitest. Closes: #30186
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Command
test
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When running
ng test
on a spec file with several tests in the test suite, then the command fails.Minimal Reproduction
Replace the test config in
angular.json
to use vitest:Update the default
app.spec.ts
with the appropriate imports at the top:+ import { beforeEach, describe, expect, it } from 'vitest';
Run the tests with
ng test
Exception or Error
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: