From 907d9668286ead887a3296215075a5256cbd3d19 Mon Sep 17 00:00:00 2001 From: wonderlandpark Date: Thu, 29 Apr 2021 16:40:54 +0900 Subject: [PATCH] test: module names --- jest.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jest.config.js b/jest.config.js index 5fe954a..5f9384d 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,7 +1,10 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', + moduleDirectories: ['node_modules', '.'], moduleNameMapper: { '@types': '/types', + '^@utils/(.*)$': '/utils/$1', + '^@components/(.*)$': '/components/$1' }, }