Skip to content

Commit b5cb361

Browse files
committed
fix: jest添加moduleNameMapper配置以支持路径映射
1 parent f5126f6 commit b5cb361

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/lib/core/jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ export default {
33
transform: {
44
'^.+.tsx?$': ['ts-jest', {}],
55
},
6+
moduleNameMapper: {
7+
'^#/(.*)$': '<rootDir>/src/$1',
8+
},
69
};

0 commit comments

Comments
 (0)