chore: upgrade moduleResolution to Node16 (#9269)
This commit is contained in:
1 parent
d721282600
commit
9e711720dd
216 files changed
+981
-2439
No files matched your search
@@ -0,0 +1,28 @@
|
||||
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",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
modulePathIgnorePatterns: [`dist/`],
|
||||
testPathIgnorePatterns: [`dist/`, `node_modules/`],
|
||||
testEnvironment: `node`,
|
||||
moduleFileExtensions: [`js`, `ts`],
|
||||
...config,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user