Created
May 29, 2020 12:40
-
-
Save dennisschneider/005f4822048f3a30dd869c30069cc239 to your computer and use it in GitHub Desktop.
Configuration for Jest w. Typescript + React
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
module.exports = { | |
roots: ["<rootDir>/src"], | |
transform: { | |
"^.+\\.tsx?$": "ts-jest", | |
}, | |
preset: "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