Skip to content

Instantly share code, notes, and snippets.

@toruticas
Created June 29, 2020 17:11
Show Gist options
  • Save toruticas/e042d0e317bb38810b9370d87d7aa0eb to your computer and use it in GitHub Desktop.
Save toruticas/e042d0e317bb38810b9370d87d7aa0eb to your computer and use it in GitHub Desktop.
const { jest: jestConfig } = require('kcd-scripts/config')
module.exports = Object.assign(jestConfig, {
globalSetup: '<rootDir>/src/setupJest',
modulePaths: ['<rootDir>/src/'],
transform: {
...jestConfig.transform,
'\\.tsx?$': 'ts-jest',
'^.+\\.jsx?$': 'babel-jest',
},
globals: {
'ts-jest': {
tsConfig: 'tsconfig.json',
},
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment