File tree Expand file tree Collapse file tree 2 files changed +14
-16
lines changed
packages/ts-lib-tools/src/config Expand file tree Collapse file tree 2 files changed +14
-16
lines changed Original file line number Diff line number Diff line change 1
1
# 变更说明
2
2
3
+ ## v0.5.1 - 2019.11.1
4
+
5
+ - fix(ts-lib-tools): 修复非 monorepo 模式下,单元测试会阻止打包命令执行的错误 ( #23 )
6
+
3
7
## v0.5.0 - 2019.10.21
4
8
5
9
- feat(babel-preset-ts-lib): 内置 babel-plugin-styled-components
Original file line number Diff line number Diff line change @@ -16,20 +16,6 @@ const monorepoJestConfig = {
16
16
'!**/dist/**' ,
17
17
'!**/.cache/**' ,
18
18
] ,
19
- watchPathIgnorePatterns : [
20
- 'node_modules' ,
21
- '.docz' ,
22
- 'coverage' ,
23
- 'examples' ,
24
- '.*/node_modules/.*' ,
25
- '.*/dist/.*' ,
26
- '.*/\\.cache/.*' ,
27
- ] ,
28
- testPathIgnorePatterns : [
29
- '.*/node_modules/.*' ,
30
- '.*/dist/.*' ,
31
- '.*/\\.cache/.*' ,
32
- ] ,
33
19
} ;
34
20
35
21
/**
@@ -59,11 +45,14 @@ export async function createJestConfig() {
59
45
] ,
60
46
watchPathIgnorePatterns : [
61
47
'node_modules' ,
62
- 'dist' ,
63
48
'.docz' ,
64
- '.cache' ,
65
49
'coverage' ,
66
50
'examples' ,
51
+ '.cache' ,
52
+ 'dist' ,
53
+ '.*/node_modules/.*' ,
54
+ '.*/dist/.*' ,
55
+ '.*/\\.cache/.*' ,
67
56
] ,
68
57
testRegex : '.*\\.(spec|test)\\.tsx?$' ,
69
58
watchPlugins : [
@@ -75,6 +64,11 @@ export async function createJestConfig() {
75
64
'^.+\\.module\\.(css|sass|scss)$' : 'identity-obj-proxy' ,
76
65
} ,
77
66
resolver : 'jest-resolver-tsconfig-paths' ,
67
+ testPathIgnorePatterns : [
68
+ '.*/node_modules/.*' ,
69
+ '.*/dist/.*' ,
70
+ '.*/\\.cache/.*' ,
71
+ ] ,
78
72
...( isMono ? monorepoJestConfig : { } ) ,
79
73
} ;
80
74
You can’t perform that action at this time.
0 commit comments