Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Oct 2, 2025

The buildTarget option in the unit-test builder is now optional to streamline the user configuration.

If the buildTarget option is not provided, the builder now defaults to using the build target with the development configuration for the current project. This change significantly reduces the boilerplate configuration needed in angular.json for most projects, as the builder can now infer the correct build settings by convention.

The builder's schema has been updated to reflect this change by removing buildTarget from the required properties and updating its description to document the new default behavior.

@clydin clydin added the target: major This PR is targeted for the next major release label Oct 2, 2025
@clydin clydin force-pushed the unit-test/default-build-target branch from 0a9c1e3 to 744d980 Compare October 2, 2025 13:30
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Oct 2, 2025
@clydin clydin added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 2, 2025
@ngbot

This comment was marked as outdated.

@clydin clydin added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: merge The PR is ready for merge by the caretaker labels Oct 2, 2025
The `buildTarget` option in the `unit-test` builder is now optional to streamline the user configuration.

If the `buildTarget` option is not provided, the builder now defaults to using the `build` target with the `development` configuration for the current project. This change significantly reduces the boilerplate configuration needed in `angular.json` for most projects, as the builder can now infer the correct build settings by convention.

The builder's schema has been updated to reflect this change by removing `buildTarget` from the required properties and updating its description to document the new default behavior.
@clydin clydin force-pushed the unit-test/default-build-target branch from 744d980 to 472f8cf Compare October 2, 2025 17:57
@clydin clydin added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Oct 2, 2025
@clydin clydin merged commit f263306 into angular:main Oct 2, 2025
32 checks passed
@clydin clydin deleted the unit-test/default-build-target branch October 2, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants