Created
February 26, 2020 22:32
-
-
Save austin43/0662c929f96d21325672503f132f117b to your computer and use it in GitHub Desktop.
ts-auto-mock configs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'jest-ts-auto-mock' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
jest: { | |
configure: { | |
setupFiles: ['<rootDir>/config.ts'], | |
globals: { | |
'ts-jest': { | |
compiler: 'ttypescript', | |
}, | |
}, | |
}, | |
}, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "es5", | |
"lib": ["dom", "dom.iterable", "esnext"], | |
"allowJs": true, | |
"skipLibCheck": true, | |
"esModuleInterop": true, | |
"allowSyntheticDefaultImports": true, | |
"strict": true, | |
"forceConsistentCasingInFileNames": true, | |
"module": "esnext", | |
"moduleResolution": "node", | |
"resolveJsonModule": true, | |
"isolatedModules": true, | |
"noEmit": true, | |
"jsx": "preserve", | |
"noImplicitAny": false, | |
"plugins": [{ "transform": "ts-auto-mock/transformer", "cacheBetweenTests": false }] | |
}, | |
"include": ["src"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment