Describe the bug
When running ng test every test suite will fail with this message:
Test suite failed to run
TypeScript diagnostics (customize using
[jest-config].globals.ts-jest.diagnosticsoption):
error TS6053: File 'myprojectroot/polyfills.ts' not found.
To Reproduce
Steps to reproduce the behavior:
ng new foong testExpected behavior
Tests should run
Builder:
Libraries
angular-devkit/build-angular: 0.800.2Additional context
I think the problem is that it's assumed that polyfill.ts was moved to the root dir. It was not.
A newly created angular project have the following config
"polyfills": "src/polyfills.ts",
Are you sure this problem reproduces when you follow the documentation? Because here are two example apps (one for single project, second for multi-project) and they both work fine...
Oops, the problem was a configuration.
Had this in my tsconfig.spec.json file
"files": ["polyfills.ts"],
Should be
"files": ["src/polyfills.ts"],
Most helpful comment
Oops, the problem was a configuration.
Had this in my tsconfig.spec.json file
Should be