Skip to content

Instantly share code, notes, and snippets.

@samolabams
Created April 4, 2022 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samolabams/d0bdb9dd2516087609de96b0f3b59c36 to your computer and use it in GitHub Desktop.
Save samolabams/d0bdb9dd2516087609de96b0f3b59c36 to your computer and use it in GitHub Desktop.
Jest config
module.exports = {
clearMocks: true,
coverageDirectory: 'coverage',
coveragePathIgnorePatterns: [
'/node_modules/',
'/__fixtures__/',
'/__tests__/',
'/(__)?mock(s__)?/',
'/__jest__/',
'.?.min.js',
],
moduleDirectories: ['node_modules', 'src'],
moduleFileExtensions: ['js', 'json', 'ts'],
resetModules: true,
rootDir: 'src',
testEnvironment: 'node',
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
verbose: true,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment