diff options
author | Matthew Miller <matthew@millerti.me> | 2020-05-20 16:16:28 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-05-20 16:16:28 -0700 |
commit | 82b12443fbdb2d2511a211db59ac83e0413a39a9 (patch) | |
tree | 8c30e138d28de50bdbb1dba55eea4f2975c4ffdc /jest.config.js | |
parent | 56471c46a72dbba1132b084f570b9725d5033bde (diff) |
Create root jest config
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..9293686 --- /dev/null +++ b/jest.config.js @@ -0,0 +1,14 @@ +module.exports = { + preset: 'ts-jest', + collectCoverageFrom: [ + '<rootDir>/src/**/*.{js,ts}', + ], + coverageDirectory: 'coverage', + setupFilesAfterEnv: [ + '<rootDir>/src/setupTests.ts', + ], + moduleNameMapper: { + '@helpers/(.*)': '<rootDir>/src/helpers/$1', + '@libTypes': '<rootDir>/src/libTypes', + }, +}; |