forked from medusajs/medusa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefine_jest_config.js
More file actions
30 lines (30 loc) · 810 Bytes
/
define_jest_config.js
File metadata and controls
30 lines (30 loc) · 810 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
module.exports = function defineJestConfig(config) {
return {
transform: {
"^.+\\.[jt]s$": [
"@swc/jest",
{
jsc: {
parser: {
syntax: "typescript",
decorators: true,
},
transform: {
useDefineForClassFields: false,
legacyDecorator: true,
decoratorMetadata: true,
},
target: "ES2021",
},
sourceMaps: "inline",
},
],
},
modulePathIgnorePatterns: [`dist/`],
testPathIgnorePatterns: [`dist/`, `node_modules/`, `__fixtures__/`, `__mocks__/`],
transformIgnorePatterns: ["node_modules/(?!(until-async|msw)/)"],
testEnvironment: `node`,
moduleFileExtensions: [`js`, `ts`],
...config,
}
}