vitest: error when a file contains several tests #30186
Labels
angular/build:unit-test
area: @angular/build
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
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: