Skip to content

Instantly share code, notes, and snippets.

@austin43
Created February 26, 2020 22:32
Show Gist options
  • Save austin43/0662c929f96d21325672503f132f117b to your computer and use it in GitHub Desktop.
Save austin43/0662c929f96d21325672503f132f117b to your computer and use it in GitHub Desktop.
ts-auto-mock configs
import 'jest-ts-auto-mock'
module.exports = {
jest: {
configure: {
setupFiles: ['<rootDir>/config.ts'],
globals: {
'ts-jest': {
compiler: 'ttypescript',
},
},
},
},
}
{
"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