Skip to content

Commit a551336

Browse files
committed
test: ignore nested design-tokens project in Jest
1 parent f057a9e commit a551336

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

jest.config.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ const config: Config = {
44
verbose: true,
55
preset: 'ts-jest',
66
testEnvironment: 'node',
7-
testMatch: ['**/?(*.)+(test).ts'], // run only .test.ts
8-
transform: { '^.+\\.tsx?$': 'ts-jest' }, // transform TS
9-
extensionsToTreatAsEsm: ['.ts'],
7+
testMatch: ['**/?(*.)+(test).ts'],
8+
transform: { '^.+\\.tsx?$': ['ts-jest', { useESM: true, tsconfig: 'tsconfig.json' }] },
109
moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1' },
11-
globals: { 'ts-jest': { useESM: true, tsconfig: 'tsconfig.json' } }
10+
modulePathIgnorePatterns: ['<rootDir>/design-tokens/']
1211
}
1312

1413
export default config

0 commit comments

Comments
 (0)