fix(@schematics/angular): support testRunner option in library schematic#31893
Merged
alan-agius4 merged 3 commits intoangular:mainfrom Nov 20, 2025
Merged
fix(@schematics/angular): support testRunner option in library schematic#31893alan-agius4 merged 3 commits intoangular:mainfrom
alan-agius4 merged 3 commits intoangular:mainfrom
Conversation
7156608 to
8686469
Compare
8686469 to
a2923f2
Compare
This commit introduces the `testRunner` option to the library schematic, allowing users to explicitly select between `vitest` and `karma` as their test runner. Additionally, the `ng-new` schematic has been updated to configure the default `testRunner` for libraries in `angular.json` based on the workspace creation options. Closes angular#31887
21ef181 to
3f5a21b
Compare
…r options. Replace string with enum
3f5a21b to
18f7894
Compare
…pping This commit simplifies the `getTestRunnerDependencies` implementation and renames it to `addTestRunnerDependencies`.
ae4f06b to
5c5019c
Compare
clydin
approved these changes
Nov 20, 2025
Collaborator
Author
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces the
testRunneroption to the library schematic, allowing users to explicitly select betweenvitestandkarmaas their test runner. Additionally, theng-newschematic has been updated to configure the defaulttestRunnerfor libraries inangular.jsonbased on the workspace creation options.Closes #31887