File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
packages/ts-lib-tools/src/config Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 44
55- fix(ts-lib-tools): 修复打包时包含了 jest 的 ` __snapshots__ ` 目录的缺陷
66- fix(ts-lib-tools): 修复新建的 monorepo 子模块发布之前不编译和发布失败的缺陷
7+ - fix(ts-lib-tools): 修复执行 monorepo 子模块中的单元测试失败的缺陷(失败的原因:在部分情况下, jest 会解析到 ` dist ` 目录下的 ` package.json ` 文件)
78
89## v0.14.1 - 2021.8.5
910
Original file line number Diff line number Diff line change @@ -70,6 +70,12 @@ export async function createJestConfig() {
7070 '^react-native$' : 'react-native-web' ,
7171 '^.+\\.module\\.(css|sass|scss)$' : 'identity-obj-proxy' ,
7272 } ,
73+ modulePathIgnorePatterns : [
74+ '<rootDir>/dist/' ,
75+ '<rootDir>/build/' ,
76+ '<rootDir>/packages/dist/' ,
77+ '<rootDir>/packages/build/' ,
78+ ] ,
7379 resolver : 'jest-resolver-tsconfig-paths' ,
7480 testPathIgnorePatterns : [
7581 '.*/node_modules/.*' ,
@@ -101,6 +107,7 @@ export async function createJestConfig() {
101107 'watchPathIgnorePatterns' ,
102108 'testRegex' ,
103109 'testPathIgnorePatterns' ,
110+ 'modulePathIgnorePatterns' ,
104111 ] ;
105112
106113 if ( overrides ) {
You can’t perform that action at this time.
0 commit comments