{
"roots": [
"<rootDir>/src"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "(/tests/.*|(\\.|/)(test|spec))\\.(ts|tsx)$",
"testPathIgnorePatterns": [
"./src/tests/setupEnzyme.ts"
],
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!/node_modules/"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"setupFilesAfterEnv": [
"<rootDir>/src/tests/setupEnzyme.ts"
],
"moduleNameMapper": {
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
}
}
module.exports = { preset: 'ts-jest', }
Обсуждают сегодня