@vyriy/jest-config 0.4.1 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/index.js +10 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,6 +24,7 @@ Coverage is enabled by default and collected from:
|
|
|
24
24
|
'!<rootDir>/**/*.types.ts',
|
|
25
25
|
'!<rootDir>/**/types.ts',
|
|
26
26
|
'!<rootDir>/*.config.ts',
|
|
27
|
+
'!<rootDir>/consumer/**',
|
|
27
28
|
];
|
|
28
29
|
```
|
|
29
30
|
|
|
@@ -40,6 +41,19 @@ Coverage paths ignore generated output, package manager state, Storybook output,
|
|
|
40
41
|
'<rootDir>/.storybook/',
|
|
41
42
|
'<rootDir>/coverage/',
|
|
42
43
|
'<rootDir>/.yarn/',
|
|
44
|
+
'<rootDir>/consumer/',
|
|
45
|
+
];
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Jest also ignores these generated and dependency directories while resolving modules and discovering tests:
|
|
49
|
+
|
|
50
|
+
```ts
|
|
51
|
+
[
|
|
52
|
+
'/node_modules/',
|
|
53
|
+
'<rootDir>/coverage/',
|
|
54
|
+
'<rootDir>/dist/',
|
|
55
|
+
'<rootDir>/storybook-static/',
|
|
56
|
+
'<rootDir>/consumer/',
|
|
43
57
|
];
|
|
44
58
|
```
|
|
45
59
|
|
package/index.js
CHANGED
|
@@ -9,6 +9,7 @@ const config = {
|
|
|
9
9
|
'!<rootDir>/**/types.ts',
|
|
10
10
|
'!<rootDir>/*.config.{ts,mjs}',
|
|
11
11
|
'!<rootDir>/**/*.config.{ts,mjs}',
|
|
12
|
+
'!<rootDir>/consumer/**',
|
|
12
13
|
],
|
|
13
14
|
coverageDirectory: 'coverage',
|
|
14
15
|
coveragePathIgnorePatterns: [
|
|
@@ -23,6 +24,7 @@ const config = {
|
|
|
23
24
|
'<rootDir>/coverage/',
|
|
24
25
|
'<rootDir>/.yarn/',
|
|
25
26
|
'<rootDir>/e2e/',
|
|
27
|
+
'<rootDir>/consumer/',
|
|
26
28
|
],
|
|
27
29
|
coverageProvider: 'v8',
|
|
28
30
|
coverageReporters: [
|
|
@@ -58,7 +60,11 @@ const config = {
|
|
|
58
60
|
'\\.(css|less|scss|sass|svg)$': 'identity-obj-proxy',
|
|
59
61
|
},
|
|
60
62
|
modulePathIgnorePatterns: [
|
|
61
|
-
'
|
|
63
|
+
'/node_modules/',
|
|
64
|
+
'<rootDir>/coverage/',
|
|
65
|
+
'<rootDir>/dist/',
|
|
66
|
+
'<rootDir>/storybook-static/',
|
|
67
|
+
'<rootDir>/consumer/',
|
|
62
68
|
],
|
|
63
69
|
reporters: [
|
|
64
70
|
'default',
|
|
@@ -76,7 +82,10 @@ const config = {
|
|
|
76
82
|
testMatch: ['**/?(*.)+(spec|test).?([mc])[jt]s?(x)'],
|
|
77
83
|
testPathIgnorePatterns: [
|
|
78
84
|
'/node_modules/',
|
|
85
|
+
'<rootDir>/coverage/',
|
|
79
86
|
'<rootDir>/dist/',
|
|
87
|
+
'<rootDir>/storybook-static/',
|
|
88
|
+
'<rootDir>/consumer/',
|
|
80
89
|
],
|
|
81
90
|
transform: {
|
|
82
91
|
'^.+\\.[tj]sx?$': [
|