forked from pengtoshi/251RCOSE45700
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.preset.js
More file actions
33 lines (32 loc) · 778 Bytes
/
jest.preset.js
File metadata and controls
33 lines (32 loc) · 778 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
const nxPreset = require("@nx/jest/preset").default;
module.exports = {
...nxPreset,
resolver: "@nx/jest/plugins/resolver",
moduleFileExtensions: ["ts", "js", "html"],
coverageReporters: ["html"],
clearMocks: true,
transform: {
"^.+\\.(ts|tsx|js|jsx|html)$": [
"@swc/jest",
{
jsc: {
parser: {
syntax: "typescript",
tsx: true,
decorators: true,
dynamicImport: false,
},
transform: {
legacyDecorator: true,
decoratorMetadata: true,
react: {
runtime: "automatic",
},
},
target: "es2022",
},
},
],
},
transformIgnorePatterns: ["libs/prisma/generated/client"],
};