ng test is not working after angular14 ugrade

40 Views Asked by At

I am receiving below error while I ran ng test after Angular14 Upgrade.:

enter image description here

I got the the below post and removed the context from my test.ts file, and getting below errorenter image description here

angular.json:

"test": {
          "builder": "@angular-builders/custom-webpack:karma",
          "options": {
            "customWebpackConfig": {
              "path": "./webpack.ng.config.js",
              "mergeStrategies": {
                "externals": "replace"
              }
            },
            "codeCoverage": true,
            "main": "client/test.ts",
            "polyfills": "client/polyfills.ts",
            "tsConfig": "tsconfig.spec.json",
            "karmaConfig": "karma.conf.js",
            "styles": [              
              "client/styles.less"
            ]
            }
0

There are 0 best solutions below