Skip to content

Commit 07c7b89

Browse files
committed
fix: update jest config
wevm/viem#1329
1 parent 0ce4448 commit 07c7b89

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jest.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,16 @@ const createJestConfig = nextJest({
77
});
88

99
// Add any custom config to be passed to Jest
10+
/** @type {import('@jest/types').Config.InitialOptions} */
1011
const customJestConfig = {
12+
moduleNameMapper: {
13+
isows: "<rootDir>/node_modules/isows/_cjs/index.js", // https://github.com/wagmi-dev/viem/issues/1329
14+
},
1115
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"],
1216
testEnvironment: "jest-environment-jsdom",
17+
transformIgnorePatterns: [
18+
"node_modules/(?!isows/)", // https://github.com/wagmi-dev/viem/issues/1329
19+
],
1320
testPathIgnorePatterns: [
1421
"<rootDir>/.next/",
1522
"<rootDir>/node_modules/",

0 commit comments

Comments
 (0)