Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@sandalsoft
Last active January 21, 2021 02:00
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 sandalsoft/544e6fabe216a8e2077488b07d14f9f7 to your computer and use it in GitHub Desktop.
Save sandalsoft/544e6fabe216a8e2077488b07d14f9f7 to your computer and use it in GitHub Desktop.
// https://kulshekhar.github.io/ts-jest/user/config/babelConfig
// Make jest work with optional chaining and other babel-enabled detritus
module.exports = {
roots: ['<rootDir>/src'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment