the --coverage option was not being used in the builder at all, so provided no change in behavior.
The --codeCoverage option should be used instead
ISSUES CLOSED: #2564
* feat(testing): update to jest-preset-angular v8.0.0 part 1
Updates to jest-preset-angular to v8.0.0, includes migrations to fix any existing projects affected
by the jest-preset-angular update.
closes#1979
* feat(testing): update jest-preset-angular to v8.0.0 part 2
Closed issues: #1979, #2165
Co-authored-by: Joshua D. Mentzer <mentzerj@trinity-health.org>
* feat(testing): update jest-preset-angular to v8.0.0 part 3
Co-authored-by: mentzerj <mentzerj@trinity-health.org>
Co-authored-by: Mehrad Rafigh <4339673+mehrad-rafigh@users.noreply.github.com>
Angular 8 supports SVG files in addition of HTML for component templates but they were not correctly parsed by Jest. All tests including SVG templates failed as below:
```sh
SyntaxError: /path/to/file.svg: Unexpected token (1:0)
> 1 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37.62 37.12">
```
* fix(testing): disable collectCoverage by default
Disabling collectCoverage by default as this causes issues with latest version of Jest
Temp fix#1531
* Adding back code coverage reporters
* feat(nx): add migration to update collectCoverage to false in jest.config.js
Added new migration script to update jest.config.js collectCoverage property to false
* refactor(nx): move migrations to @nrwl/jest
Move the collectCoverage migration to the jest package
* chore: refactor to use AST utils