Skip to content

ng test doesn't watch when first compilation fails #7976

@mrkvon

Description

@mrkvon

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.4.5
node: 8.4.0
os: linux x64
@angular/animations: 4.4.4
@angular/common: 4.4.4
@angular/compiler: 4.4.4
@angular/core: 4.4.4
@angular/forms: 4.4.4
@angular/http: 4.4.4
@angular/platform-browser: 4.4.4
@angular/platform-browser-dynamic: 4.4.4
@angular/router: 4.4.4
@angular/cli: 1.4.5
@angular/compiler-cli: 4.4.4
@angular/language-service: 4.4.4
typescript: 2.3.4

Repro steps.

  • ng new testproject
  • introduce a syntax error to ./src/app/app.component.ts
  • run ng test and see the error message
  • fix the syntax error and save
  • doesn't recompile, tests are not rerun

The log given by the failure.

Desired functionality.

The watch should work independently of success/failure of the first compilation.

Mention any other details that might be useful.

  • happened after update 1.3.2 > 1.4.5
  • the issue happens only when the first compilation fails. i.e. when the first compilation passes and the next one fails, the further behavior is as expected (still watching and recompiling)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions