-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjest.config.cjs
More file actions
27 lines (27 loc) · 832 Bytes
/
jest.config.cjs
File metadata and controls
27 lines (27 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module.exports = {
testEnvironment: 'jsdom',
preset: 'ts-jest',
testMatch: [
'**/src/**/*.spec.ts',
'**/src/**/*.spec.tsx',
'**/src/**/*.test.ts',
'**/src/**/*.test.tsx',
],
testPathIgnorePatterns: [
'/node_modules/',
'/tests/', // Ignore Playwright tests
'/dist/',
],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
// setupFilesAfterEnv: ['<rootDir>/src/setupTests.ts'],
moduleNameMapper: {
'^@workday-core$': '<rootDir>/workday-core/src/main/react',
'^@workday-core/(.*)$': '<rootDir>/workday-core/src/main/react/$1',
'^@workday-user$': '<rootDir>/workday-user/src/main/react',
'^@workday-user/(.*)$': '<rootDir>/workday-user/src/main/react/$1',
'\\.(css|less|scss)$': 'identity-obj-proxy',
},
};