From b39825e31a4d25dc4ab2a0c6fb12d84d55944b12 Mon Sep 17 00:00:00 2001 From: wewoor Date: Thu, 11 May 2023 18:12:10 +0800 Subject: [PATCH] fix: ingore the unused errors of libs --- jest.config.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jest.config.js b/jest.config.js index c98e63d..cd7f329 100644 --- a/jest.config.js +++ b/jest.config.js @@ -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