Skip to content

fix(@angular/build): allow vitest-based unit testing to use watch option #30275

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 8, 2025

Conversation

clydin
Copy link
Member

@clydin clydin commented May 8, 2025

When using the application build system with the experimental unit-test vitest support, the watch option will now be passed through to the underlying test runner. This allows vitest to be used for watch-based test development. Incremental test file updates from the build system are also enabled in watch mode as well to remove the need to rewrite all output files on a rebuild.

When using the `application` build system with the experimental `unit-test`
vitest support, the `watch` option will now be passed through to the underlying
test runner. This allows vitest to be used for watch-based test development.
Incremental test file updates from the build system are also enabled in watch
mode as well to remove the need to rewrite all output files on a rebuild.
@clydin clydin added the target: rc This PR is targeted for the next release-candidate label May 8, 2025
@clydin clydin requested a review from alan-agius4 May 8, 2025 15:58
When using the experimental `unit-test` builder with `vitest` as the runner,
an error message will now be shown if the `vitest` package cannot be loaded.
The error message includes a suggestion to install the package if not present.
@clydin clydin removed the request for review from alan-agius4 May 8, 2025 16:14
@clydin clydin added the action: merge The PR is ready for merge by the caretaker label May 8, 2025
@clydin clydin merged commit 48f84ca into angular:main May 8, 2025
31 checks passed
@clydin
Copy link
Member Author

clydin commented May 8, 2025

The changes were merged into the following branches: main, 20.0.x

@clydin clydin deleted the unit-test/vitest-watch branch May 8, 2025 16:57
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: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants