Skip to content

Instantly share code, notes, and snippets.

@BiosBoy
Created January 13, 2019 16:46
Show Gist options
  • Select an option

  • Save BiosBoy/f00f33edb244057f3bdfb59efb3a9ba3 to your computer and use it in GitHub Desktop.

Select an option

Save BiosBoy/f00f33edb244057f3bdfb59efb3a9ba3 to your computer and use it in GitHub Desktop.
module.exports = {
cacheDirectory: '<rootDir>/.tmp/jest',
coverageDirectory: './.tmp/coverage',
moduleNameMapper: {
'^.+\\.(css|scss|cssmodule)$': 'identity-obj-proxy'
},
modulePaths: ['<rootDir>'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
globals: {
NODE_ENV: 'test'
},
verbose: true,
testRegex: '(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js|jsx)$',
testPathIgnorePatterns: ['/node_modules/', '/__tests__/mocks/.*'],
coveragePathIgnorePatterns: ['typings.d.ts'],
transformIgnorePatterns: ['.*(node_modules).*$'],
transform: {
'^.+\\.jsx?$': 'babel-jest',
'^.+\\.tsx?$': 'ts-jest'
},
setupFiles: ['<rootDir>/setupTests.js'],
snapshotSerializers: ['enzyme-to-json/serializer']
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment