From a0ffc174332d17fc0ad1ea018f8db17f7510da36 Mon Sep 17 00:00:00 2001 From: "fred.tran" Date: Tue, 19 Nov 2024 17:15:39 +0800 Subject: [PATCH] chore: jest moduleMapper --- packages/react/jest.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react/jest.config.ts b/packages/react/jest.config.ts index 9bd78b5..6447800 100644 --- a/packages/react/jest.config.ts +++ b/packages/react/jest.config.ts @@ -75,7 +75,9 @@ const config: Config = { moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'], // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module - // moduleNameMapper: {}, + moduleNameMapper: { + '@aelf-web-login/wallet-adapter-(.*)$': '/../$1', + }, // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader // modulePathIgnorePatterns: [],