summaryrefslogtreecommitdiffhomepage
path: root/jest.config.js
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-05-19 15:10:20 -0700
committerMatthew Miller <matthew@millerti.me>2020-05-19 15:10:37 -0700
commitddec52d679674521c8d9416b14f6bf631fe992ce (patch)
tree88ad8e70ba37f45b3db25c261e86a4c40ef36aeb /jest.config.js
parentfcddf9aab5c0498bdb8f5f3053af780ef32dbe26 (diff)
Finish setting up ts-jest
Diffstat (limited to 'jest.config.js')
-rw-r--r--jest.config.js9
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',
},