Skip to content

Instantly share code, notes, and snippets.

@josiahhaswell
Created December 19, 2018 20:25
Show Gist options
  • Save josiahhaswell/5caa555eb91f21b91aa1e994e6f3900d to your computer and use it in GitHub Desktop.
Save josiahhaswell/5caa555eb91f21b91aa1e994e6f3900d to your computer and use it in GitHub Desktop.
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: [
"<rootdir>/src"
],
transform: {
"^.+\.tsx?$": "ts-jest"
},
moduleFileExtensions: [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
moduleNameMapper: {
"^gen/(.*)": "<rootdir>/dist/$1",
"^aire/(.*)": "<rootdir>/src/main/$1",
"^test/(.*)": "<rootdir>/src/test/$1",
},
modulePaths: [
"<rootdir>/src",
"&<rootdir>/node_modules"
],
setupFiles: [
"<rootdir>/src/test/setup.ts"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment