fix: ingore the unused errors of libs

This commit is contained in:
wewoor 2023-05-11 18:12:10 +08:00
parent 4af913cf30
commit b39825e31a

View File

@ -175,7 +175,11 @@ module.exports = {
// A map from regular expressions to paths to transformers
transform: {
'\\.[jt]sx?$': 'ts-jest',
'\\.[jt]sx?$': ['ts-jest', {
tsconfig: {
noUnusedLocals: false,
}
}]
},
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation