summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-05-19 01:02:37 -0700
committerMatthew Miller <matthew@millerti.me>2020-05-19 01:02:37 -0700
commitdb6f558e96f7f27ba353d8f4e6303a021f6a7302 (patch)
tree8dd8bc8d2fe819c74b8a21c4c26004a1119586df
parent6235944c7a7e98a4dc7292a50ec318fba7b61286 (diff)
Add mappers to Jest config for absolute paths
-rw-r--r--jest.config.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jest.config.js b/jest.config.js
index 4a5b465..6712a44 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -1,4 +1,8 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
+ 'moduleNameMapper': {
+ '@helpers/(.*)': '<rootDir>/src/helpers/$1',
+ '@types': '<rootDir>/src/types',
+ },
};