-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.mjs
More file actions
32 lines (31 loc) · 681 Bytes
/
jest.config.mjs
File metadata and controls
32 lines (31 loc) · 681 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
const config = {
extensionsToTreatAsEsm: ['.ts', '.tsx'],
transformIgnorePatterns: ['/node_modules/(?!payload)/'],
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},
transform: {
'^.+\\.(t|j)sx?$': [
'@swc/jest',
{
jsc: {
target: 'esnext',
parser: {
syntax: 'typescript',
tsx: true,
decorators: true,
},
transform: {
legacyDecorator: true,
decoratorMetadata: true,
},
},
},
],
},
testEnvironment: 'node',
testMatch: ['<rootDir>/**/*spec.ts'],
testTimeout: 10000,
verbose: true,
}
export default config