@monorepolint/rules 0.5.0-alpha.132 → 0.5.0-alpha.134

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.
@@ -3,39 +3,40 @@
3
3
  > NODE_OPTIONS=--experimental-vm-modules jest --colors --passWithNoTests
4
4
 
5
5
  ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/monorepolint/packages/core/build/js/index.js', falling back to original file content. You can also configure Jest config option `transformIgnorePatterns` to ignore /home/runner/work/monorepolint/monorepolint/packages/core/build/js/index.js from transformation or make sure that `outDir` in your tsconfig is neither `''` or `'.'`
6
- ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/monorepolint/packages/utils/build/js/index.js', falling back to original file content. You can also configure Jest config option `transformIgnorePatterns` to ignore /home/runner/work/monorepolint/monorepolint/packages/utils/build/js/index.js from transformation or make sure that `outDir` in your tsconfig is neither `''` or `'.'`
7
6
  ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/monorepolint/packages/core/build/js/index.js', falling back to original file content. You can also configure Jest config option `transformIgnorePatterns` to ignore /home/runner/work/monorepolint/monorepolint/packages/core/build/js/index.js from transformation or make sure that `outDir` in your tsconfig is neither `''` or `'.'`
8
7
  ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/monorepolint/packages/utils/build/js/index.js', falling back to original file content. You can also configure Jest config option `transformIgnorePatterns` to ignore /home/runner/work/monorepolint/monorepolint/packages/utils/build/js/index.js from transformation or make sure that `outDir` in your tsconfig is neither `''` or `'.'`
9
- (node:3220) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
8
+ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/monorepolint/packages/utils/build/js/index.js', falling back to original file content. You can also configure Jest config option `transformIgnorePatterns` to ignore /home/runner/work/monorepolint/monorepolint/packages/utils/build/js/index.js from transformation or make sure that `outDir` in your tsconfig is neither `''` or `'.'`
9
+ (node:3075) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
10
10
  (Use `node --trace-warnings ...` to show where the warning was created)
11
-  PASS  src/__tests__/consistentVersions.spec.ts (6.655 s)
11
+  PASS  src/__tests__/consistentVersions.spec.ts (6.442 s)
12
12
  consistentVersions
13
13
  standard tests
14
- ✓ Does nothing when arguments are empty (11 ms)
14
+ ✓ Does nothing when arguments are empty (10 ms)
15
15
  ✓ Fixes packages that have an incorrect dependency version (5 ms)
16
16
  ✓ Ignores packages that have a correct dependency version (2 ms)
17
- ✓ Fixes packages that have an incorrect devDependency version (3 ms)
17
+ ✓ Fixes packages that have an incorrect devDependency version (2 ms)
18
18
  ✓ Ignores packages that have a correct devDependency version (2 ms)
19
- ✓ Fixes packages that have an incorrect dependency and devDependency versions (3 ms)
19
+ ✓ Fixes packages that have an incorrect dependency and devDependency versions (8 ms)
20
20
  Multiple accepted versions tests
21
- ✓ Accepts a match when multiple versions are configured (13 ms)
21
+ ✓ Accepts a match when multiple versions are configured (2 ms)
22
22
  ✓ Errors when version does not match (2 ms)
23
23
 
24
+ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/monorepolint/packages/utils/build/js/index.js', falling back to original file content. You can also configure Jest config option `transformIgnorePatterns` to ignore /home/runner/work/monorepolint/monorepolint/packages/utils/build/js/index.js from transformation or make sure that `outDir` in your tsconfig is neither `''` or `'.'`
24
25
  console.log
25
- package-without-scripts (/tmp/tmp-3221-CvSguC6MTY9V)
26
+ package-without-scripts (/tmp/tmp-3077-27byg176jCZs)
26
27
  
27
28
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
28
29
 
29
30
  console.error
30
31
   Error! package.json: No scripts block in package.json
31
32
  
32
-    149 | }
33
-    150 | // tslint:disable-next-line:no-console
34
-  > 151 | console.error(this.getMessage(str, depth));
35
-    | ^
36
-    152 | }
37
-    153 |
38
-    154 | private getMessage(str: string, depth: number) {
33
+    149 | }
34
+   150 | // tslint:disable-next-line:no-console
35
+  > 151 | console.error(this.getMessage(str, depth));
36
+   | ^
37
+   152 | }
38
+   153 |
39
+   154 | private getMessage(str: string, depth: number) {
39
40
  
40
41
   at WorkspaceContextImpl.printError (../core/src/PackageContext.ts:151:13)
41
42
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
@@ -45,7 +46,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
45
46
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
46
47
 
47
48
  console.log
48
- package-without-scripts (/tmp/tmp-3221-mUYGfwO47YbA)
49
+ package-without-scripts (/tmp/tmp-3077-SUNaA8gaojFM)
49
50
  
50
51
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
51
52
 
@@ -55,7 +56,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
55
56
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
56
57
 
57
58
  console.log
58
- package-with-scripts (/tmp/tmp-3221-76M1mGJDJGq6)
59
+ package-with-scripts (/tmp/tmp-3077-6Xw3eJSYv2ff)
59
60
  
60
61
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
61
62
 
@@ -65,20 +66,20 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
65
66
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
66
67
 
67
68
  console.log
68
- package-with-scripts (/tmp/tmp-3221-utr042imdlUh)
69
+ package-with-scripts (/tmp/tmp-3077-NQqQwvANuzOa)
69
70
  
70
71
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
71
72
 
72
73
  console.error
73
74
   Error! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
74
75
  
75
-    149 | }
76
-    150 | // tslint:disable-next-line:no-console
77
-  > 151 | console.error(this.getMessage(str, depth));
78
-    | ^
79
-    152 | }
80
-    153 |
81
-    154 | private getMessage(str: string, depth: number) {
76
+    149 | }
77
+   150 | // tslint:disable-next-line:no-console
78
+  > 151 | console.error(this.getMessage(str, depth));
79
+   | ^
80
+   152 | }
81
+   153 |
82
+   154 | private getMessage(str: string, depth: number) {
82
83
  
83
84
   at WorkspaceContextImpl.printError (../core/src/PackageContext.ts:151:13)
84
85
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
@@ -88,7 +89,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
88
89
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
89
90
 
90
91
  console.log
91
- package-with-scripts (/tmp/tmp-3221-NzX5AyKqjdvM)
92
+ package-with-scripts (/tmp/tmp-3077-NCA3cz4ENqlg)
92
93
  
93
94
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
94
95
 
@@ -98,7 +99,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
98
99
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
99
100
 
100
101
  console.log
101
- package-with-scripts (/tmp/tmp-3221-bhjRS4sRiRQ8)
102
+ package-with-scripts (/tmp/tmp-3077-i0a2UAI5qeUz)
102
103
  
103
104
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
104
105
 
@@ -108,7 +109,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
108
109
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
109
110
 
110
111
  console.log
111
- package-with-scripts (/tmp/tmp-3221-MqpPUFTpWIja)
112
+ package-with-scripts (/tmp/tmp-3077-jKJ9jVWNUQug)
112
113
  
113
114
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
114
115
 
@@ -117,23 +118,23 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
117
118
  
118
119
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
119
120
 
120
- (node:3221) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
121
+ (node:3077) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
121
122
  (Use `node --trace-warnings ...` to show where the warning was created)
122
123
  console.log
123
- package-without-scripts (/tmp/tmp-3221-C17akSIYfG23)
124
+ package-without-scripts (/tmp/tmp-3077-zRXFTUXJCzYz)
124
125
  
125
126
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
126
127
 
127
128
  console.error
128
129
   Error! package.json: No scripts block in package.json
129
130
  
130
-    149 | }
131
-    150 | // tslint:disable-next-line:no-console
132
-  > 151 | console.error(this.getMessage(str, depth));
133
-    | ^
134
-    152 | }
135
-    153 |
136
-    154 | private getMessage(str: string, depth: number) {
131
+    149 | }
132
+   150 | // tslint:disable-next-line:no-console
133
+  > 151 | console.error(this.getMessage(str, depth));
134
+   | ^
135
+   152 | }
136
+   153 |
137
+   154 | private getMessage(str: string, depth: number) {
137
138
  
138
139
   at WorkspaceContextImpl.printError (../core/src/PackageContext.ts:151:13)
139
140
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
@@ -143,7 +144,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
143
144
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
144
145
 
145
146
  console.log
146
- package-without-scripts (/tmp/tmp-3221-CCTmocBl764e)
147
+ package-without-scripts (/tmp/tmp-3077-IisiGSdsxtD3)
147
148
  
148
149
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
149
150
 
@@ -152,66 +153,8 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
152
153
  
153
154
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
154
155
 
155
-  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (6.961 s)
156
- mustSatisfyPeerDependencies
157
- ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (5 ms)
158
- ✓ Flags conflicting peer dependencies (5 ms)
159
- ✓ Flags unsatisfied peer dependencies (test package has regular dep) (4 ms)
160
- ✓ Flags missing peer dependencies (NO regular dependency present) (4 ms)
161
- ✓ Flags unsatisfied peer dependencies (test package has peer dep) (3 ms)
162
- ✓ Honors dependencyWhitelist (5 ms)
163
- ✓ Honors dependencyBlacklist (4 ms)
164
- regex tests
165
- ✓ Properly matches any version range regex (23 ms)
166
- ✓ Properly matches greator or equal version range regex (15 ms)
167
- ✓ Properly matches major version range regex (10 ms)
168
- ✓ Properly matches allowed range regex (17 ms)
169
- Determines dependencies satisfaction correctly
170
- ✓ version is version (2 ms)
171
- ✓ version satisfies a range (3 ms)
172
- ✓ higher version satisfies a range (2 ms)
173
- ✓ version satisfies a greator or equal version range (2 ms)
174
- ✓ higher version satisfies a greator or equal version range (1 ms)
175
- ✓ version satisfies 'any' range (1 ms)
176
- ✓ greator or equal version range satisfies 'any' range (1 ms)
177
- ✓ range satisfies 'any' range (1 ms)
178
- ✓ union range satisfies 'any' range (1 ms)
179
- ✓ version found in union start (3 ms)
180
- ✓ version found in union end (1 ms)
181
- ✓ version satisfies a range in union start (2 ms)
182
- ✓ version satisfies a range in union end (1 ms)
183
- ✓ higher version satisfies a range in union start (1 ms)
184
- ✓ higher version satisfies a range in union end
185
- ✓ range found in union start
186
- ✓ range found in union end (1 ms)
187
- ✓ union satisfies greator or equal version range (1 ms)
188
- ✓ greator or equal version range satisfies greator or equal version range
189
- ✓ equivalent greator or equal version ranges satisfy each other (1 ms)
190
- ✓ higher range satisfies a range in union start (1 ms)
191
- ✓ higher range satisfies a range in union end (1 ms)
192
- ✓ equivalent 'any' ranges satisfy each other
193
- ✓ equivalent major ranges satisfy each other (2 ms)
194
- ✓ version missing in union (1 ms)
195
- ✓ range missing in union (1 ms)
196
- Determines dependencies intersections correctly
197
- ✓ equivalence (2 ms)
198
- ✓ exact vs any
199
- ✓ major vs any (1 ms)
200
- ✓ greater or equal vs any (1 ms)
201
- ✓ any vs any (1 ms)
202
- ✓ exact vs greater or equal (1 ms)
203
- ✓ major vs greater or equal (2 ms)
204
- ✓ greater or equal vs greater or equal (2 ms)
205
- ✓ exact vs major (2 ms)
206
- ✓ major vs major (1 ms)
207
- ✓ exact vs union (2 ms)
208
- ✓ major vs union (1 ms)
209
- ✓ union vs union (2 ms)
210
-
211
- (node:3218) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
212
- (Use `node --trace-warnings ...` to show where the warning was created)
213
156
  console.log
214
- package-with-scripts (/tmp/tmp-3221-FGBNY9VdRQ9U)
157
+ package-with-scripts (/tmp/tmp-3077-HoL2YBJvS9pK)
215
158
  
216
159
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
217
160
 
@@ -221,20 +164,20 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
221
164
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
222
165
 
223
166
  console.log
224
- package-with-scripts (/tmp/tmp-3221-4lONnhWvBO4Z)
167
+ package-with-scripts (/tmp/tmp-3077-k5e3drWZMJGP)
225
168
  
226
169
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
227
170
 
228
171
  console.error
229
172
   Error! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
230
173
  
231
-    149 | }
232
-    150 | // tslint:disable-next-line:no-console
233
-  > 151 | console.error(this.getMessage(str, depth));
234
-    | ^
235
-    152 | }
236
-    153 |
237
-    154 | private getMessage(str: string, depth: number) {
174
+    149 | }
175
+   150 | // tslint:disable-next-line:no-console
176
+  > 151 | console.error(this.getMessage(str, depth));
177
+   | ^
178
+   152 | }
179
+   153 |
180
+   154 | private getMessage(str: string, depth: number) {
238
181
  
239
182
   at WorkspaceContextImpl.printError (../core/src/PackageContext.ts:151:13)
240
183
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
@@ -244,7 +187,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
244
187
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
245
188
 
246
189
  console.log
247
- package-with-scripts (/tmp/tmp-3221-QRoEvImjmidf)
190
+ package-with-scripts (/tmp/tmp-3077-6L5uwr7uF9rx)
248
191
  
249
192
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
250
193
 
@@ -254,7 +197,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
254
197
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
255
198
 
256
199
  console.log
257
- package-with-scripts (/tmp/tmp-3221-OUfdqW6aAkjg)
200
+ package-with-scripts (/tmp/tmp-3077-UIe6TYvzTucY)
258
201
  
259
202
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
260
203
 
@@ -264,7 +207,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
264
207
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
265
208
 
266
209
  console.log
267
- package-with-scripts (/tmp/tmp-3221-c3UAgeka5Y62)
210
+ package-with-scripts (/tmp/tmp-3077-bnJJfXkOMb5S)
268
211
  
269
212
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
270
213
 
@@ -273,41 +216,98 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
273
216
  
274
217
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
275
218
 
276
-  PASS  src/__tests__/packageScript.spec.ts (6.957 s)
219
+  PASS  src/__tests__/packageScript.spec.ts (6.829 s)
277
220
  expectPackageScript (SimpleHost)
278
221
  fix: false
279
- ✓ handles an empty script section (57 ms)
222
+ ✓ handles an empty script section (117 ms)
280
223
  fix: true
281
- ✓ fixes an empty script section (4 ms)
282
- ✓ adds a script (5 ms)
224
+ ✓ fixes an empty script section (11 ms)
225
+ ✓ adds a script (18 ms)
283
226
  ✓ does nothing if the value exists (2 ms)
284
- ✓ errors if long form is used and no value matches and there is no fixValue (10 ms)
285
- ✓ uses the fixValue for fixing if provided (14 ms)
286
- ✓ can fix to empty (5 ms)
227
+ ✓ errors if long form is used and no value matches and there is no fixValue (17 ms)
228
+ ✓ uses the fixValue for fixing if provided (6 ms)
229
+ ✓ can fix to empty (6 ms)
287
230
  ✓ can allow only empty (5 ms)
288
231
  expectPackageScript (CachingHost)
289
232
  fix: false
290
- ✓ handles an empty script section (14 ms)
233
+ ✓ handles an empty script section (17 ms)
291
234
  fix: true
292
235
  ✓ fixes an empty script section (6 ms)
293
- ✓ adds a script (16 ms)
294
- ✓ does nothing if the value exists (4 ms)
295
- ✓ errors if long form is used and no value matches and there is no fixValue (14 ms)
236
+ ✓ adds a script (13 ms)
237
+ ✓ does nothing if the value exists (5 ms)
238
+ ✓ errors if long form is used and no value matches and there is no fixValue (8 ms)
296
239
  ✓ uses the fixValue for fixing if provided (5 ms)
297
240
  ✓ can fix to empty (4 ms)
298
- ✓ can allow only empty (4 ms)
241
+ ✓ can allow only empty (12 ms)
299
242
 
300
-  PASS  src/__tests__/nestedWorkspaces.spec.ts
301
- nestedWorkspaces
302
- ✓ checks correctly when no packages (16 ms)
303
- ✓ checks correctly when one level packages (6 ms)
304
- ✓ checks fail when one level packages with no workspaces field (6 ms)
305
- ✓ checks correctly when two level packages with two level workspaces field (7 ms)
306
- ✓ checks fail when two level packages with one level workspaces field (6 ms)
307
- ✓ checks correctly when three level packages with three level workspaces field (10 ms)
243
+ (node:3074) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
244
+ (Use `node --trace-warnings ...` to show where the warning was created)
245
+  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.084 s)
246
+ mustSatisfyPeerDependencies
247
+ ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (5 ms)
248
+ ✓ Flags conflicting peer dependencies (4 ms)
249
+ ✓ Flags unsatisfied peer dependencies (test package has regular dep) (4 ms)
250
+ ✓ Flags missing peer dependencies (NO regular dependency present) (16 ms)
251
+ ✓ Flags unsatisfied peer dependencies (test package has peer dep) (3 ms)
252
+ ✓ Honors dependencyWhitelist (9 ms)
253
+ ✓ Honors dependencyBlacklist (8 ms)
254
+ regex tests
255
+ ✓ Properly matches any version range regex (23 ms)
256
+ ✓ Properly matches greator or equal version range regex (13 ms)
257
+ ✓ Properly matches major version range regex (7 ms)
258
+ ✓ Properly matches allowed range regex (13 ms)
259
+ Determines dependencies satisfaction correctly
260
+ ✓ version is version (1 ms)
261
+ ✓ version satisfies a range (2 ms)
262
+ ✓ higher version satisfies a range (3 ms)
263
+ ✓ version satisfies a greator or equal version range (1 ms)
264
+ ✓ higher version satisfies a greator or equal version range (2 ms)
265
+ ✓ version satisfies 'any' range (1 ms)
266
+ ✓ greator or equal version range satisfies 'any' range (1 ms)
267
+ ✓ range satisfies 'any' range (3 ms)
268
+ ✓ union range satisfies 'any' range (1 ms)
269
+ ✓ version found in union start (1 ms)
270
+ ✓ version found in union end (1 ms)
271
+ ✓ version satisfies a range in union start (1 ms)
272
+ ✓ version satisfies a range in union end (1 ms)
273
+ ✓ higher version satisfies a range in union start (1 ms)
274
+ ✓ higher version satisfies a range in union end
275
+ ✓ range found in union start
276
+ ✓ range found in union end (1 ms)
277
+ ✓ union satisfies greator or equal version range (1 ms)
278
+ ✓ greator or equal version range satisfies greator or equal version range (1 ms)
279
+ ✓ equivalent greator or equal version ranges satisfy each other (1 ms)
280
+ ✓ higher range satisfies a range in union start (1 ms)
281
+ ✓ higher range satisfies a range in union end (1 ms)
282
+ ✓ equivalent 'any' ranges satisfy each other (1 ms)
283
+ ✓ equivalent major ranges satisfy each other (4 ms)
284
+ ✓ version missing in union (1 ms)
285
+ ✓ range missing in union (1 ms)
286
+ Determines dependencies intersections correctly
287
+ ✓ equivalence (2 ms)
288
+ ✓ exact vs any (1 ms)
289
+ ✓ major vs any
290
+ ✓ greater or equal vs any
291
+ ✓ any vs any (1 ms)
292
+ ✓ exact vs greater or equal (1 ms)
293
+ ✓ major vs greater or equal (2 ms)
294
+ ✓ greater or equal vs greater or equal
295
+ ✓ exact vs major (2 ms)
296
+ ✓ major vs major (1 ms)
297
+ ✓ exact vs union (1 ms)
298
+ ✓ major vs union (2 ms)
299
+ ✓ union vs union (3 ms)
300
+
301
+  PASS  src/__tests__/bannedDependencies.spec.ts
302
+ bannedDependencies
303
+ ✓ Flags banned dependencies correctly (9 ms)
304
+ ✓ Flags banned dependencies correctly w legacy globs (2 ms)
305
+ ✓ Flags banned dependencies correctly w new globs (1 ms)
306
+ ✓ Flags banned dependencies correctly w exact (2 ms)
307
+ ✓ Flags banned transitives correctly (5 ms)
308
308
 
309
309
  console.log
310
- package (/tmp/tmp-3218-oKMAJX0NzRnZ)
310
+ package (/tmp/tmp-3077-giEA3mKdRUx1)
311
311
  
312
312
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
313
313
 
@@ -317,7 +317,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
317
317
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
318
318
 
319
319
  console.log
320
- package (/tmp/tmp-3218-C4JTbl1iWf7e)
320
+ package (/tmp/tmp-3077-43DIKE6Yahqa)
321
321
  
322
322
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
323
323
 
@@ -327,20 +327,20 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
327
327
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
328
328
 
329
329
  console.log
330
- package (/tmp/tmp-3218-Pc5UOvbIcbvp)
330
+ package (/tmp/tmp-3077-hgx2Dy8dVnir)
331
331
  
332
332
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
333
333
 
334
334
  console.error
335
335
   Error! package.json: Expected entry for 'bugs' to exist
336
336
  
337
-    149 | }
338
-    150 | // tslint:disable-next-line:no-console
339
-  > 151 | console.error(this.getMessage(str, depth));
340
-    | ^
341
-    152 | }
342
-    153 |
343
-    154 | private getMessage(str: string, depth: number) {
337
+    149 | }
338
+   150 | // tslint:disable-next-line:no-console
339
+  > 151 | console.error(this.getMessage(str, depth));
340
+   | ^
341
+   152 | }
342
+   153 |
343
+   154 | private getMessage(str: string, depth: number) {
344
344
  
345
345
   at WorkspaceContextImpl.printError (../core/src/PackageContext.ts:151:13)
346
346
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
@@ -350,28 +350,20 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
350
350
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
351
351
 
352
352
  console.log
353
- package (/tmp/tmp-3218-39pAkKfXCt2F)
353
+ package (/tmp/tmp-3077-O062Y0oxN4Ax)
354
354
  
355
355
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
356
356
 
357
-  PASS  src/__tests__/bannedDependencies.spec.ts
358
- bannedDependencies
359
- ✓ Flags banned dependencies correctly (11 ms)
360
- ✓ Flags banned dependencies correctly w legacy globs (3 ms)
361
- ✓ Flags banned dependencies correctly w new globs (2 ms)
362
- ✓ Flags banned dependencies correctly w exact (2 ms)
363
- ✓ Flags banned transitives correctly (8 ms)
364
-
365
357
  console.error
366
358
   Error! package.json: Expected entry for 'bugs' to exist
367
359
  
368
-    149 | }
369
-    150 | // tslint:disable-next-line:no-console
370
-  > 151 | console.error(this.getMessage(str, depth));
371
-    | ^
372
-    152 | }
373
-    153 |
374
-    154 | private getMessage(str: string, depth: number) {
360
+    149 | }
361
+   150 | // tslint:disable-next-line:no-console
362
+  > 151 | console.error(this.getMessage(str, depth));
363
+   | ^
364
+   152 | }
365
+   153 |
366
+   154 | private getMessage(str: string, depth: number) {
375
367
  
376
368
   at WorkspaceContextImpl.printError (../core/src/PackageContext.ts:151:13)
377
369
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
@@ -386,7 +378,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
386
378
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
387
379
 
388
380
  console.log
389
- package (/tmp/tmp-3218-4GlYr2GAkUNO)
381
+ package (/tmp/tmp-3077-dv5YNhHjyQmW)
390
382
  
391
383
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
392
384
 
@@ -396,7 +388,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
396
388
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
397
389
 
398
390
  console.log
399
- package (/tmp/tmp-3218-EBJ9Nf6rv53b)
391
+ package (/tmp/tmp-3077-gIKBhF6Qmzh8)
400
392
  
401
393
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
402
394
 
@@ -406,20 +398,20 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
406
398
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
407
399
 
408
400
  console.log
409
- package (/tmp/tmp-3218-FskxJi9xybld)
401
+ package (/tmp/tmp-3077-z1r7H8JL9u1C)
410
402
  
411
403
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
412
404
 
413
405
  console.error
414
406
   Error! package.json: Expected entry for 'bugs' to exist
415
407
  
416
-    149 | }
417
-    150 | // tslint:disable-next-line:no-console
418
-  > 151 | console.error(this.getMessage(str, depth));
419
-    | ^
420
-    152 | }
421
-    153 |
422
-    154 | private getMessage(str: string, depth: number) {
408
+    149 | }
409
+   150 | // tslint:disable-next-line:no-console
410
+  > 151 | console.error(this.getMessage(str, depth));
411
+   | ^
412
+   152 | }
413
+   153 |
414
+   154 | private getMessage(str: string, depth: number) {
423
415
  
424
416
   at WorkspaceContextImpl.printError (../core/src/PackageContext.ts:151:13)
425
417
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
@@ -429,20 +421,20 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
429
421
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
430
422
 
431
423
  console.log
432
- package (/tmp/tmp-3218-4kF9JSu4IufS)
424
+ package (/tmp/tmp-3077-17BA07Yll5qh)
433
425
  
434
426
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
435
427
 
436
428
  console.error
437
429
   Error! package.json: Expected entry for 'bugs' to exist
438
430
  
439
-    149 | }
440
-    150 | // tslint:disable-next-line:no-console
441
-  > 151 | console.error(this.getMessage(str, depth));
442
-    | ^
443
-    152 | }
444
-    153 |
445
-    154 | private getMessage(str: string, depth: number) {
431
+    149 | }
432
+   150 | // tslint:disable-next-line:no-console
433
+  > 151 | console.error(this.getMessage(str, depth));
434
+   | ^
435
+   152 | }
436
+   153 |
437
+   154 | private getMessage(str: string, depth: number) {
446
438
  
447
439
   at WorkspaceContextImpl.printError (../core/src/PackageContext.ts:151:13)
448
440
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
@@ -459,42 +451,45 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
459
451
   PASS  src/__tests__/packageEntry.spec.ts
460
452
  expectPackageEntries (SimpleHost)
461
453
  fix: true
462
- ✓ fixes missing entries (75 ms)
454
+ ✓ fixes missing entries (22 ms)
463
455
  ✓ fixes missing nested entries (4 ms)
464
- ✓ doesn't error for nested entries that are defined (1 ms)
465
- ✓ errors for keys that are missing (9 ms)
466
- ✓ handles both entries and entriesExist (9 ms)
456
+ ✓ doesn't error for nested entries that are defined (8 ms)
457
+ ✓ errors for keys that are missing (8 ms)
458
+ ✓ handles both entries and entriesExist (12 ms)
467
459
  expectPackageEntries (CachingHost)
468
460
  fix: true
469
- ✓ fixes missing entries (15 ms)
461
+ ✓ fixes missing entries (7 ms)
470
462
  ✓ fixes missing nested entries (5 ms)
471
463
  ✓ doesn't error for nested entries that are defined (1 ms)
472
- ✓ errors for keys that are missing (10 ms)
473
- ✓ handles both entries and entriesExist (12 ms)
464
+ ✓ errors for keys that are missing (8 ms)
465
+ ✓ handles both entries and entriesExist (9 ms)
466
+
467
+  PASS  src/__tests__/nestedWorkspaces.spec.ts
468
+ nestedWorkspaces
469
+ ✓ checks correctly when no packages (9 ms)
470
+ ✓ checks correctly when one level packages (5 ms)
471
+ ✓ checks fail when one level packages with no workspaces field (8 ms)
472
+ ✓ checks correctly when two level packages with two level workspaces field (5 ms)
473
+ ✓ checks fail when two level packages with one level workspaces field (5 ms)
474
+ ✓ checks correctly when three level packages with three level workspaces field (7 ms)
474
475
 
475
476
   PASS  src/__tests__/requireDependency.spec.ts
476
477
  requireDependency
477
- ✓ checks correctly (9 ms)
478
- ✓ fixes correctly (5 ms)
478
+ ✓ checks correctly (28 ms)
479
+ ✓ fixes correctly (6 ms)
479
480
 
480
481
  console.log
481
- package (/tmp/tmp-3220-0wSXeOSC70Cp)
482
+ package (/tmp/tmp-3077-d2c1shMv3lXz)
482
483
  
483
484
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
484
485
 
485
-  PASS  src/__tests__/consistentDependencies.spec.ts
486
- consistentDependencies
487
- ✓ checks correctly (15 ms)
488
- ✓ fixes correctly (4 ms)
489
- ✓ ignores ignored dependencies (3 ms)
490
-
491
486
  console.log
492
487
  Fixed! package.json: Incorrect order of fields in package.json
493
488
  
494
489
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
495
490
 
496
491
  console.log
497
- package-unknown-keys (/tmp/tmp-3220-ITqPeA5hj3D6)
492
+ package-unknown-keys (/tmp/tmp-3077-l1enrDcAG1Yc)
498
493
  
499
494
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
500
495
 
@@ -504,7 +499,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
504
499
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
505
500
 
506
501
  console.log
507
- package (/tmp/tmp-3220-ISEDvOVuOcid)
502
+ package (/tmp/tmp-3077-vvQSw0pzrlj7)
508
503
  
509
504
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
510
505
 
@@ -514,7 +509,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
514
509
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
515
510
 
516
511
  console.log
517
- package (/tmp/tmp-3220-n95mCRzjOViR)
512
+ package (/tmp/tmp-3077-focJcIBccrxe)
518
513
  
519
514
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
520
515
 
@@ -524,7 +519,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
524
519
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
525
520
 
526
521
  console.log
527
- package-unknown-keys (/tmp/tmp-3220-U9ZZ5iQpyOTP)
522
+ package-unknown-keys (/tmp/tmp-3077-ikuhj0T3d1od)
528
523
  
529
524
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
530
525
 
@@ -534,31 +529,37 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
534
529
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
535
530
 
536
531
  console.log
537
- package (/tmp/tmp-3220-7defq9vzgO85)
532
+ package (/tmp/tmp-3077-ayPIQXbMDjAc)
538
533
  
539
534
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
540
535
 
541
536
  console.log
537
+  PASS  src/__tests__/packageOrder.spec.ts
542
538
  Fixed! package.json: Incorrect order of fields in package.json
543
539
  
544
540
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
545
-
546
-  PASS  src/__tests__/packageOrder.spec.ts
547
541
  expectPackageOrder (SimpleHost)
542
+
548
543
  fix: true
549
- ✓ fixes order for expected keys (72 ms)
550
- ✓ fixes order for unexpected keys (18 ms)
551
- ✓ fixes order using function (6 ms)
544
+ ✓ fixes order for expected keys (16 ms)
545
+ ✓ fixes order for unexpected keys (34 ms)
546
+ ✓ fixes order using function (5 ms)
552
547
  ✓ does nothing if already order (1 ms)
553
548
  expectPackageOrder (CachingHost)
554
549
  fix: true
555
- ✓ fixes order for expected keys (8 ms)
556
- ✓ fixes order for unexpected keys (5 ms)
557
- ✓ fixes order using function (5 ms)
558
- ✓ does nothing if already order (1 ms)
550
+ ✓ fixes order for expected keys (16 ms)
551
+ ✓ fixes order for unexpected keys (4 ms)
552
+ ✓ fixes order using function (2 ms)
553
+ ✓ does nothing if already order
554
+
555
+  PASS  src/__tests__/consistentDependencies.spec.ts
556
+ consistentDependencies
557
+ ✓ checks correctly (12 ms)
558
+ ✓ fixes correctly (2 ms)
559
+ ✓ ignores ignored dependencies (2 ms)
559
560
 
560
561
  console.log
561
- foo-lib (/tmp/tmp-3218-fm3FO17h9u52)
562
+ foo-lib (/tmp/tmp-3077-D8sW3pL75s7I)
562
563
  
563
564
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
564
565
 
@@ -568,7 +569,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
568
569
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
569
570
 
570
571
  console.log
571
- foo-lib (/tmp/tmp-3218-1aB7jcF46qeh)
572
+ foo-lib (/tmp/tmp-3077-7tCwR6HVBLZC)
572
573
  
573
574
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
574
575
 
@@ -580,15 +581,15 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
580
581
   PASS  src/__tests__/alphabeticalScripts.spec.ts
581
582
  alphabeticalScripts (SimpleHost)
582
583
  fix: true
583
- ✓ fixes unsorted scripts (14 ms)
584
+ ✓ fixes unsorted scripts (9 ms)
584
585
  ✓ does nothing if already sorted (1 ms)
585
586
  alphabeticalScripts (CachingHost)
586
587
  fix: true
587
- ✓ fixes unsorted scripts (6 ms)
588
+ ✓ fixes unsorted scripts (4 ms)
588
589
  ✓ does nothing if already sorted (1 ms)
589
590
 
590
591
  console.log
591
- rootProject (/tmp/tmp-3221-oYyiL7k8GuBR)
592
+ rootProject (/tmp/tmp-3075-W1GYzH08V0uh)
592
593
  
593
594
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
594
595
 
@@ -598,7 +599,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
598
599
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
599
600
 
600
601
  console.log
601
- rootProject (/tmp/tmp-3221-0GrEPgUeLjP4)
602
+ rootProject (/tmp/tmp-3075-JQ5tDHaZ8Jyn)
602
603
  
603
604
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
604
605
 
@@ -608,7 +609,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
608
609
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
609
610
 
610
611
  console.log
611
- rootProject (/tmp/tmp-3221-vlP47JGueYiA)
612
+ rootProject (/tmp/tmp-3075-Na3CcANo84Rk)
612
613
  
613
614
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
614
615
 
@@ -618,7 +619,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
618
619
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
619
620
 
620
621
  console.log
621
- rootProject (/tmp/tmp-3221-xWYFBpVXT5kH)
622
+ rootProject (/tmp/tmp-3075-3wseX6zXWeGh)
622
623
  
623
624
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
624
625
 
@@ -628,7 +629,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
628
629
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
629
630
 
630
631
  console.log
631
- rootProject (/tmp/tmp-3221-kbZ5v4nYM7ua)
632
+ rootProject (/tmp/tmp-3075-FYaOZNLnGv4o)
632
633
  
633
634
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
634
635
 
@@ -638,7 +639,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
638
639
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
639
640
 
640
641
  console.log
641
- rootProject (/tmp/tmp-3221-EBKCMQqQEHCo)
642
+ rootProject (/tmp/tmp-3075-M8UmWBZv0uiL)
642
643
  
643
644
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
644
645
 
@@ -650,17 +651,17 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
650
651
   PASS  src/__tests__/fileContents.spec.ts
651
652
  fileContents (SimpleHost)
652
653
  fix: true
653
- ✓ works with async generator (7 ms)
654
+ ✓ works with async generator (44 ms)
654
655
  ✓ fixes missing file (2 ms)
655
656
  ✓ fixes missing nested file (2 ms)
656
657
  fileContents (CachingHost)
657
658
  fix: true
658
- ✓ works with async generator (8 ms)
659
- ✓ fixes missing file (3 ms)
660
- ✓ fixes missing nested file (2 ms)
659
+ ✓ works with async generator (10 ms)
660
+ ✓ fixes missing file (8 ms)
661
+ ✓ fixes missing nested file (5 ms)
661
662
 
662
663
  Test Suites: 11 passed, 11 total
663
664
  Tests: 118 passed, 118 total
664
665
  Snapshots: 0 total
665
- Time: 9.575 s
666
+ Time: 9.57 s
666
667
  Ran all test suites.