How do I turn off source maps for Angular 6 ng test?

前端 未结 4 1899
予麋鹿
予麋鹿 2020-12-14 07:52

I am trying to turn off sourcemaps for my tests in Angular 6. I know the sourcemaps switch has been removed, e.g., ng test --sourcemaps=false.

I have tri

4条回答
  •  温柔的废话
    2020-12-14 08:16

    For me, I'm using Angular 10 and was able to set sourceMap for test in angular.json:

    "test": {
      ...
      "options": {
        ...
        "tsConfig": "src/tsconfig.spec.json",
        "sourceMap": false
    

提交回复
热议问题