aboutsummaryrefslogtreecommitdiffstats
path: root/jest.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'jest.config.js')
-rw-r--r--jest.config.js25
1 files changed, 2 insertions, 23 deletions
diff --git a/jest.config.js b/jest.config.js
index 1aa0cbb..414e49f 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -1,27 +1,6 @@
1import { join } from 'path';
2
3import { fileURLToDirname } from './config/build-common.js';
4
5const dirname = fileURLToDirname(import.meta.url);
6
7/** @type {import('ts-jest').InitialOptionsTsJest} */ 1/** @type {import('ts-jest').InitialOptionsTsJest} */
8export default { 2export default {
9 preset: 'ts-jest/presets/default-esm', 3 projects: [
10 globals: { 4 '<rootDir>/packages/*',
11 'ts-jest': {
12 isolatedModules: true,
13 useESM: true,
14 },
15 },
16 moduleNameMapper: {
17 '@sophie/(.+)': join(dirname, 'packages/$1/src/index.ts'),
18 '^(\\.{1,2}/.*)\\.js$': '$1',
19 },
20 resetMocks: true,
21 restoreMocks: true,
22 testEnvironment: 'node',
23 testPathIgnorePatterns: [
24 '/dist/',
25 '/node_modules/',
26 ], 5 ],
27}; 6};