summaryrefslogtreecommitdiffhomepage
path: root/jest.config.js
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-05-20 16:16:28 -0700
committerMatthew Miller <matthew@millerti.me>2020-05-20 16:16:28 -0700
commit82b12443fbdb2d2511a211db59ac83e0413a39a9 (patch)
tree8c30e138d28de50bdbb1dba55eea4f2975c4ffdc /jest.config.js
parent56471c46a72dbba1132b084f570b9725d5033bde (diff)
Create root jest config
Diffstat (limited to 'jest.config.js')
-rw-r--r--jest.config.js14
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',
+ },
+};