You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [
"src/styles.css"
],
"scripts": [],
"assets": [
"src/favicon.ico",
"src/assets"
],
"sourceMap": true // <--- This setting should be included by default
}
Mention any other details that might be useful
When this setting is not included in the project, ng test --code-coverage produces incorrect coverage reporting for the Angular project. The sourceMap setting must be added to the CLI settings to get correct coverage reporting.
Please include this setting in all new projects generated by the CLI.
When using the CLI to upgrade to a new angular version, if this setting is not explicitly set in angular.json, the setting should be added.
Please update the CLI so that it sets the right config out of the box.
Thanks
The text was updated successfully, but these errors were encountered:
Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version.
If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Repro steps
ng new foo
angular.json
and check the settings forprojects > foo > architect > test
The log given by the failure
Desired functionality
Mention any other details that might be useful
When this setting is not included in the project,
ng test --code-coverage
produces incorrect coverage reporting for the Angular project. ThesourceMap
setting must be added to the CLI settings to get correct coverage reporting.Please include this setting in all new projects generated by the CLI.
When using the CLI to upgrade to a new angular version, if this setting is not explicitly set in
angular.json
, the setting should be added.Please update the CLI so that it sets the right config out of the box.
Thanks
The text was updated successfully, but these errors were encountered: