16 строки
538 B
JavaScript
16 строки
538 B
JavaScript
const nxPreset = require("@nrwl/jest/preset");
|
|
module.exports = {
|
|
...nxPreset,
|
|
testMatch: ["**/+(*.)+(spec|test).+(ts|js)?(x)"],
|
|
transform: {
|
|
"^.+\\.(ts|js|html)$": "ts-jest"
|
|
},
|
|
resolver: "@nrwl/jest/plugins/resolver",
|
|
moduleFileExtensions: ["ts", "js", "html"],
|
|
collectCoverage: true,
|
|
collectCoverageFrom: ["<rootDir>/src/**/*.ts?(x)"],
|
|
coverageReporters: ["html", "cobertura", "lcov", "text", "json"],
|
|
setupFilesAfterEnv: ["<rootDir>/../../setupTest.ts"],
|
|
snapshotSerializers: ["enzyme-to-json/serializer"]
|
|
};
|