Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Aug 13, 2025

Introduces a new migration that removes karma.conf.js files from projects if they contain only the default generated configuration. When a file is removed, the corresponding karmaConfig option in angular.json is also removed from the project's test target.

The Angular CLI now provides a default Karma configuration internally, making explicit configuration files unnecessary for projects that do not require customization. This migration helps to clean up and simplify existing projects by removing these now redundant files.

The migration will safely skip any karma.conf.js file that has been modified or contains values that cannot be reliably analyzed.

…igurations

Introduces a new migration that removes `karma.conf.js` files from projects if they contain only the default generated configuration. When a file is removed, the corresponding `karmaConfig` option in `angular.json` is also removed from the project's test target.

The Angular CLI now provides a default Karma configuration internally, making explicit configuration files unnecessary for projects that do not require customization. This migration helps to clean up and simplify existing projects by removing these now redundant files.

The migration will safely skip any `karma.conf.js` file that has been modified or contains values that cannot be reliably analyzed.
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release labels Aug 13, 2025
@alan-agius4 alan-agius4 merged commit 2e3cfd5 into angular:main Aug 13, 2025
31 checks passed
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @schematics/angular detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants