diff options
Diffstat (limited to 'jest.config.js')
-rw-r--r-- | jest.config.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jest.config.js b/jest.config.js index 6943513..d0ba361 100644 --- a/jest.config.js +++ b/jest.config.js | |||
@@ -1,5 +1,7 @@ | |||
1 | // @ts-check | 1 | // @ts-check |
2 | 2 | ||
3 | const { join } = require('path'); | ||
4 | |||
3 | /** @type {import('ts-jest').InitialOptionsTsJest} */ | 5 | /** @type {import('ts-jest').InitialOptionsTsJest} */ |
4 | module.exports = { | 6 | module.exports = { |
5 | preset: 'ts-jest', | 7 | preset: 'ts-jest', |
@@ -8,6 +10,9 @@ module.exports = { | |||
8 | isolatedModules: true, | 10 | isolatedModules: true, |
9 | }, | 11 | }, |
10 | }, | 12 | }, |
13 | moduleNameMapper: { | ||
14 | '@sophie/(.+)': join(__dirname, 'packages/$1/src/index.ts'), | ||
15 | }, | ||
11 | resetMocks: true, | 16 | resetMocks: true, |
12 | restoreMocks: true, | 17 | restoreMocks: true, |
13 | testEnvironment: 'node', | 18 | testEnvironment: 'node', |