-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Bug
Copy link
Labels
area: @schematics/angularfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix
Description
Command
test
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
Somehow I was lucky to hit this issue on the first try.
When generating a library in a completely empty workspace - it still points to Karma/Jasmine instead of Vitest.
If workspace isn't empty at the time of generation - it scaffolds vitest correctly.
Minimal Reproduction
ng new my-workspace --create-application falsecd my-workspaceng g lib my-lib
Exception or Error
Both `tsconfig.spec.json` and `angular.json` points to Karma/Jasmine.
Your Environment
Angular CLI : 21.0.0
Angular : 21.0.0
Node.js : 22.20.0
Package Manager : npm 10.9.3
Operating System : darwin arm64
Anything else relevant?
No response
Metadata
Metadata
Assignees
Labels
area: @schematics/angularfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix