Skip to content

Karma builder doesn't watch files with "builderMode: application" #28730

Closed
@cexbrayat

Description

@cexbrayat

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

Using the "builderMode": "application", option in the Karam builder breaks ng test watch capabilities

Minimal Reproduction

Create a new project with npx @angular/[email protected] new karma-watch --defaults --no-routing
Add "builderMode": "application", to angular.json in the karmaoptions.
Launch ng test
Update any file of the project like app.component.ts or app.component.spec.ts: the tests don't run again.

Exception or Error

No response

Your Environment

Angular CLI: 19.0.0-next.13
Node: 20.13.1
Package Manager: npm 9.7.1
OS: darwin arm64

Angular: 19.0.0-next.11
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.1900.0-next.13
@angular-devkit/build-angular 19.0.0-next.13
@angular-devkit/core 19.0.0-next.13
@angular-devkit/schematics 19.0.0-next.13
@angular/cli 19.0.0-next.13
@schematics/angular 19.0.0-next.13
rxjs 7.8.1
typescript 5.6.3
zone.js 0.15.0

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions