Last active
January 21, 2021 02:00
-
-
Save sandalsoft/544e6fabe216a8e2077488b07d14f9f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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