ng add @briebug/jest-schematic
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/spec",
"types": ["jest"],
"esModuleInterop": true,
"emitDecoratorMetadata": true
},
"include": ["src/**/*.spec.ts", "src/**/*.d.ts"]
}
module.exports = {
preset: "jest-preset-angular",
collectCoverage: true,
coverageDirectory: "coverage/jest-app",
};
"test": "jest",
"test-coverage": "jest --coverage",
"test-watch": "jest --watchAll"