diff options
author | Matthew Miller <matthew@millerti.me> | 2020-05-19 15:10:20 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-05-19 15:10:37 -0700 |
commit | ddec52d679674521c8d9416b14f6bf631fe992ce (patch) | |
tree | 88ad8e70ba37f45b3db25c261e86a4c40ef36aeb /jest.config.js | |
parent | fcddf9aab5c0498bdb8f5f3053af780ef32dbe26 (diff) |
Finish setting up ts-jest
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/jest.config.js b/jest.config.js index 6712a44..ff33e28 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,7 +1,14 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', - 'moduleNameMapper': { + collectCoverageFrom: [ + 'src/**/*.{js,ts}', + ], + coverageDirectory: 'coverage', + setupFilesAfterEnv: [ + '<rootDir>/src/setupTests.ts', + ], + moduleNameMapper: { '@helpers/(.*)': '<rootDir>/src/helpers/$1', '@types': '<rootDir>/src/types', }, |