in file: angular.json at json node path: projects->{{yourProjectName}}->architect->test->options add node: "tsConfig": "src/tsconfig.json"