chore: upgrade moduleResolution to Node16 (#9269)
This commit is contained in:
28
define_jest_config.js
Normal file
28
define_jest_config.js
Normal file
@@ -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