-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
34 lines (34 loc) · 836 Bytes
/
jest.config.js
File metadata and controls
34 lines (34 loc) · 836 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
28
29
30
31
32
33
34
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1',
},
transform: {
'^.+\\.(ts|tsx)$': ['ts-jest', {
tsconfig: 'tsconfig.jest.json',
}],
},
testMatch: [
'**/__tests__/**/*.ts?(x)',
'**/?(*.)+(spec|test).ts?(x)',
'**/?(*.)+(spec|test).js?(x)',
],
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/.next/',
'<rootDir>/.claude/',
'<rootDir>/.codex-worktrees/',
'<rootDir>/.omc/',
'<rootDir>/.omx/',
'<rootDir>/tests/',
],
modulePathIgnorePatterns: [
'<rootDir>/.next/',
'<rootDir>/.claude/',
'<rootDir>/.codex-worktrees/',
'<rootDir>/.omx/',
],
};