@monorepolint/rules 0.5.0-alpha.133 → 0.5.0-alpha.135

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,41 +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
- 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 `'.'`
10
- (node:3171) 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:3123) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
11
10
  (Use `node --trace-warnings ...` to show where the warning was created)
12
-  PASS  src/__tests__/consistentVersions.spec.ts (6.717 s)
11
+  PASS  src/__tests__/consistentVersions.spec.ts (6.911 s)
13
12
  consistentVersions
14
13
  standard tests
15
- ✓ Does nothing when arguments are empty (23 ms)
16
- ✓ Fixes packages that have an incorrect dependency version (8 ms)
17
- ✓ Ignores packages that have a correct dependency version (9 ms)
18
- ✓ Fixes packages that have an incorrect devDependency version (17 ms)
19
- ✓ Ignores packages that have a correct devDependency version (2 ms)
20
- ✓ Fixes packages that have an incorrect dependency and devDependency versions (4 ms)
14
+ ✓ Does nothing when arguments are empty (35 ms)
15
+ ✓ Fixes packages that have an incorrect dependency version (4 ms)
16
+ ✓ Ignores packages that have a correct dependency version (2 ms)
17
+ ✓ Fixes packages that have an incorrect devDependency version (3 ms)
18
+ ✓ Ignores packages that have a correct devDependency version (14 ms)
19
+ ✓ Fixes packages that have an incorrect dependency and devDependency versions (15 ms)
21
20
  Multiple accepted versions tests
22
- ✓ Accepts a match when multiple versions are configured (3 ms)
21
+ ✓ Accepts a match when multiple versions are configured (4 ms)
23
22
  ✓ Errors when version does not match (2 ms)
24
23
 
25
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 `'.'`
26
25
  console.log
27
- package-without-scripts (/tmp/tmp-3177-FNgkt2tmNuBr)
26
+ package-without-scripts (/tmp/tmp-3129-6PZ9GKvUCHKe)
28
27
  
29
28
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
30
29
 
31
30
  console.error
32
31
   Error! package.json: No scripts block in package.json
33
32
  
34
-    149 | }
35
-    150 | // tslint:disable-next-line:no-console
36
-  > 151 | console.error(this.getMessage(str, depth));
37
-    | ^
38
-    152 | }
39
-    153 |
40
-    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) {
41
40
  
42
41
   at WorkspaceContextImpl.printError (../core/src/PackageContext.ts:151:13)
43
42
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
@@ -47,7 +46,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
47
46
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
48
47
 
49
48
  console.log
50
- package-without-scripts (/tmp/tmp-3177-1exoJAj9gyGq)
49
+ package-without-scripts (/tmp/tmp-3129-mlW0CEL9U2ys)
51
50
  
52
51
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
53
52
 
@@ -57,7 +56,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
57
56
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
58
57
 
59
58
  console.log
60
- package-with-scripts (/tmp/tmp-3177-sUubRlHuCWuo)
59
+ package-with-scripts (/tmp/tmp-3129-Ie5NdznSaaNg)
61
60
  
62
61
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
63
62
 
@@ -67,20 +66,20 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
67
66
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
68
67
 
69
68
  console.log
70
- package-with-scripts (/tmp/tmp-3177-2xk4CJOeJDpK)
69
+ package-with-scripts (/tmp/tmp-3129-DPP2Kb5alhqT)
71
70
  
72
71
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
73
72
 
74
73
  console.error
75
74
   Error! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
76
75
  
77
-    149 | }
78
-    150 | // tslint:disable-next-line:no-console
79
-  > 151 | console.error(this.getMessage(str, depth));
80
-    | ^
81
-    152 | }
82
-    153 |
83
-    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) {
84
83
  
85
84
   at WorkspaceContextImpl.printError (../core/src/PackageContext.ts:151:13)
86
85
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
@@ -90,7 +89,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
90
89
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
91
90
 
92
91
  console.log
93
- package-with-scripts (/tmp/tmp-3177-8ABhg3V7agmE)
92
+ package-with-scripts (/tmp/tmp-3129-XsgIo2CTAdMT)
94
93
  
95
94
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
96
95
 
@@ -100,7 +99,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
100
99
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
101
100
 
102
101
  console.log
103
- package-with-scripts (/tmp/tmp-3177-79AHr9x2V5Tk)
102
+ package-with-scripts (/tmp/tmp-3129-dkCmVjn1ztkj)
104
103
  
105
104
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
106
105
 
@@ -110,7 +109,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
110
109
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
111
110
 
112
111
  console.log
113
- package-with-scripts (/tmp/tmp-3177-WKSk4bI2D42v)
112
+ package-with-scripts (/tmp/tmp-3129-tVbjyD0MQAbA)
114
113
  
115
114
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
116
115
 
@@ -119,23 +118,23 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
119
118
  
120
119
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
121
120
 
122
- (node:3177) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
121
+ (node:3129) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
123
122
  (Use `node --trace-warnings ...` to show where the warning was created)
124
123
  console.log
125
- package-without-scripts (/tmp/tmp-3177-zDmo6vwvmzdo)
124
+ package-without-scripts (/tmp/tmp-3129-HHkub6VSOmN5)
126
125
  
127
126
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
128
127
 
129
128
  console.error
130
129
   Error! package.json: No scripts block in package.json
131
130
  
132
-    149 | }
133
-    150 | // tslint:disable-next-line:no-console
134
-  > 151 | console.error(this.getMessage(str, depth));
135
-    | ^
136
-    152 | }
137
-    153 |
138
-    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) {
139
138
  
140
139
   at WorkspaceContextImpl.printError (../core/src/PackageContext.ts:151:13)
141
140
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
@@ -145,7 +144,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
145
144
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
146
145
 
147
146
  console.log
148
- package-without-scripts (/tmp/tmp-3177-CdH3I9yXD37u)
147
+ package-without-scripts (/tmp/tmp-3129-rlq43ykNj1yq)
149
148
  
150
149
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
151
150
 
@@ -155,7 +154,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
155
154
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
156
155
 
157
156
  console.log
158
- package-with-scripts (/tmp/tmp-3177-7RcrsPKSm2RH)
157
+ package-with-scripts (/tmp/tmp-3129-PJ2gUK4oXslt)
159
158
  
160
159
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
161
160
 
@@ -165,20 +164,20 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
165
164
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
166
165
 
167
166
  console.log
168
- package-with-scripts (/tmp/tmp-3177-v3G1YFAl8g5N)
167
+ package-with-scripts (/tmp/tmp-3129-g39Rp8LfL4k3)
169
168
  
170
169
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
171
170
 
172
171
  console.error
173
172
   Error! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
174
173
  
175
-    149 | }
176
-    150 | // tslint:disable-next-line:no-console
177
-  > 151 | console.error(this.getMessage(str, depth));
178
-    | ^
179
-    152 | }
180
-    153 |
181
-    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) {
182
181
  
183
182
   at WorkspaceContextImpl.printError (../core/src/PackageContext.ts:151:13)
184
183
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
@@ -188,7 +187,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
188
187
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
189
188
 
190
189
  console.log
191
- package-with-scripts (/tmp/tmp-3177-5mkPZ6hLpB7N)
190
+ package-with-scripts (/tmp/tmp-3129-hcf651eG30Zd)
192
191
  
193
192
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
194
193
 
@@ -198,7 +197,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
198
197
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
199
198
 
200
199
  console.log
201
- package-with-scripts (/tmp/tmp-3177-xEhJ6TtlHAEV)
200
+ package-with-scripts (/tmp/tmp-3129-zgt7lYs6k23N)
202
201
  
203
202
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
204
203
 
@@ -208,7 +207,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
208
207
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
209
208
 
210
209
  console.log
211
- package-with-scripts (/tmp/tmp-3177-YQ1ZKNHHR12I)
210
+ package-with-scripts (/tmp/tmp-3129-QaXg4lqbxR7D)
212
211
  
213
212
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
214
213
 
@@ -217,90 +216,98 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
217
216
  
218
217
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
219
218
 
220
-  PASS  src/__tests__/packageScript.spec.ts (7.067 s)
219
+  PASS  src/__tests__/packageScript.spec.ts (7.123 s)
221
220
  expectPackageScript (SimpleHost)
222
221
  fix: false
223
- ✓ handles an empty script section (70 ms)
222
+ ✓ handles an empty script section (68 ms)
224
223
  fix: true
225
- ✓ fixes an empty script section (13 ms)
226
- ✓ adds a script (4 ms)
224
+ ✓ fixes an empty script section (7 ms)
225
+ ✓ adds a script (11 ms)
227
226
  ✓ does nothing if the value exists (2 ms)
228
- ✓ errors if long form is used and no value matches and there is no fixValue (9 ms)
227
+ ✓ errors if long form is used and no value matches and there is no fixValue (24 ms)
229
228
  ✓ uses the fixValue for fixing if provided (5 ms)
230
- ✓ can fix to empty (8 ms)
229
+ ✓ can fix to empty (5 ms)
231
230
  ✓ can allow only empty (5 ms)
232
231
  expectPackageScript (CachingHost)
233
232
  fix: false
234
- ✓ handles an empty script section (16 ms)
233
+ ✓ handles an empty script section (22 ms)
235
234
  fix: true
236
- ✓ fixes an empty script section (5 ms)
237
- ✓ adds a script (5 ms)
238
- ✓ does nothing if the value exists (1 ms)
239
- ✓ errors if long form is used and no value matches and there is no fixValue (9 ms)
240
- ✓ uses the fixValue for fixing if provided (10 ms)
241
- ✓ can fix to empty (8 ms)
242
- ✓ can allow only empty (20 ms)
243
-
244
- (node:3170) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
245
- (Use `node --trace-warnings ...` to show where the warning was created)
246
-  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.374 s)
235
+ ✓ fixes an empty script section (4 ms)
236
+ ✓ adds a script (7 ms)
237
+ ✓ does nothing if the value exists (2 ms)
238
+ ✓ errors if long form is used and no value matches and there is no fixValue (21 ms)
239
+ ✓ uses the fixValue for fixing if provided (5 ms)
240
+ ✓ can fix to empty (15 ms)
241
+ ✓ can allow only empty (18 ms)
242
+
243
+  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.507 s)
247
244
  mustSatisfyPeerDependencies
248
245
  ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (5 ms)
249
- ✓ Flags conflicting peer dependencies (5 ms)
250
- ✓ Flags unsatisfied peer dependencies (test package has regular dep) (10 ms)
251
- ✓ Flags missing peer dependencies (NO regular dependency present) (5 ms)
252
- ✓ Flags unsatisfied peer dependencies (test package has peer dep) (7 ms)
253
- ✓ Honors dependencyWhitelist (5 ms)
254
- ✓ Honors dependencyBlacklist (9 ms)
246
+ ✓ Flags conflicting peer dependencies (4 ms)
247
+ ✓ Flags unsatisfied peer dependencies (test package has regular dep) (4 ms)
248
+ ✓ Flags missing peer dependencies (NO regular dependency present) (4 ms)
249
+ ✓ Flags unsatisfied peer dependencies (test package has peer dep) (4 ms)
250
+ ✓ Honors dependencyWhitelist (4 ms)
251
+ ✓ Honors dependencyBlacklist (4 ms)
255
252
  regex tests
256
- ✓ Properly matches any version range regex (30 ms)
257
- ✓ Properly matches greator or equal version range regex (18 ms)
258
- ✓ Properly matches major version range regex (16 ms)
259
- ✓ Properly matches allowed range regex (25 ms)
253
+ ✓ Properly matches any version range regex (40 ms)
254
+ ✓ Properly matches greator or equal version range regex (13 ms)
255
+ ✓ Properly matches major version range regex (10 ms)
256
+ ✓ Properly matches allowed range regex (17 ms)
260
257
  Determines dependencies satisfaction correctly
261
258
  ✓ version is version (1 ms)
262
259
  ✓ version satisfies a range (4 ms)
263
- ✓ higher version satisfies a range (1 ms)
264
- ✓ version satisfies a greator or equal version range (1 ms)
260
+ ✓ higher version satisfies a range (2 ms)
261
+ ✓ version satisfies a greator or equal version range (2 ms)
265
262
  ✓ higher version satisfies a greator or equal version range (1 ms)
266
- ✓ version satisfies 'any' range (8 ms)
263
+ ✓ version satisfies 'any' range (2 ms)
267
264
  ✓ greator or equal version range satisfies 'any' range (1 ms)
268
- ✓ range satisfies 'any' range (1 ms)
265
+ ✓ range satisfies 'any' range (3 ms)
269
266
  ✓ union range satisfies 'any' range (1 ms)
270
267
  ✓ version found in union start (1 ms)
271
268
  ✓ version found in union end (1 ms)
272
269
  ✓ version satisfies a range in union start (1 ms)
273
- ✓ version satisfies a range in union end (3 ms)
274
- ✓ higher version satisfies a range in union start (3 ms)
270
+ ✓ version satisfies a range in union end (1 ms)
271
+ ✓ higher version satisfies a range in union start (1 ms)
275
272
  ✓ higher version satisfies a range in union end (1 ms)
276
- ✓ range found in union start
277
- ✓ range found in union end
273
+ ✓ range found in union start (1 ms)
274
+ ✓ range found in union end (1 ms)
278
275
  ✓ union satisfies greator or equal version range (1 ms)
279
276
  ✓ greator or equal version range satisfies greator or equal version range (1 ms)
280
277
  ✓ equivalent greator or equal version ranges satisfy each other (1 ms)
281
278
  ✓ higher range satisfies a range in union start (1 ms)
282
279
  ✓ higher range satisfies a range in union end (1 ms)
283
280
  ✓ equivalent 'any' ranges satisfy each other (1 ms)
284
- ✓ equivalent major ranges satisfy each other (11 ms)
285
- ✓ version missing in union
281
+ ✓ equivalent major ranges satisfy each other (5 ms)
282
+ ✓ version missing in union (1 ms)
286
283
  ✓ range missing in union (1 ms)
287
284
  Determines dependencies intersections correctly
288
- ✓ equivalence (1 ms)
285
+ ✓ equivalence (2 ms)
289
286
  ✓ exact vs any (1 ms)
290
- ✓ major vs any (1 ms)
287
+ ✓ major vs any
291
288
  ✓ greater or equal vs any (1 ms)
292
- ✓ any vs any
293
- ✓ exact vs greater or equal (7 ms)
294
- ✓ major vs greater or equal (6 ms)
295
- ✓ greater or equal vs greater or equal (1 ms)
289
+ ✓ any vs any (1 ms)
290
+ ✓ exact vs greater or equal (1 ms)
291
+ ✓ major vs greater or equal (2 ms)
292
+ ✓ greater or equal vs greater or equal (5 ms)
296
293
  ✓ exact vs major (1 ms)
297
- ✓ major vs major (2 ms)
298
- ✓ exact vs union (1 ms)
299
- ✓ major vs union (2 ms)
300
- ✓ union vs union (2 ms)
294
+ ✓ major vs major (1 ms)
295
+ ✓ exact vs union (2 ms)
296
+ ✓ major vs union (1 ms)
297
+ ✓ union vs union (4 ms)
298
+
299
+ (node:3122) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
300
+ (Use `node --trace-warnings ...` to show where the warning was created)
301
+  PASS  src/__tests__/bannedDependencies.spec.ts
302
+ bannedDependencies
303
+ ✓ Flags banned dependencies correctly (9 ms)
304
+ ✓ Flags banned dependencies correctly w legacy globs (3 ms)
305
+ ✓ Flags banned dependencies correctly w new globs (2 ms)
306
+ ✓ Flags banned dependencies correctly w exact (1 ms)
307
+ ✓ Flags banned transitives correctly (6 ms)
301
308
 
302
309
  console.log
303
- package (/tmp/tmp-3177-2bUFUyaHNEi6)
310
+ package (/tmp/tmp-3129-T5Kb6VjghuN1)
304
311
  
305
312
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
306
313
 
@@ -310,7 +317,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
310
317
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
311
318
 
312
319
  console.log
313
- package (/tmp/tmp-3177-Fl02Zb1AjGQa)
320
+ package (/tmp/tmp-3129-IvMvc3uqd9P1)
314
321
  
315
322
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
316
323
 
@@ -320,20 +327,20 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
320
327
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
321
328
 
322
329
  console.log
323
- package (/tmp/tmp-3177-Z5pbF0WnC2Vm)
330
+ package (/tmp/tmp-3129-0h5XPczSDg4h)
324
331
  
325
332
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
326
333
 
327
334
  console.error
328
335
   Error! package.json: Expected entry for 'bugs' to exist
329
336
  
330
-    149 | }
331
-    150 | // tslint:disable-next-line:no-console
332
-  > 151 | console.error(this.getMessage(str, depth));
333
-    | ^
334
-    152 | }
335
-    153 |
336
-    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) {
337
344
  
338
345
   at WorkspaceContextImpl.printError (../core/src/PackageContext.ts:151:13)
339
346
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
@@ -343,20 +350,20 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
343
350
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
344
351
 
345
352
  console.log
346
- package (/tmp/tmp-3177-92d7UskussI0)
353
+ package (/tmp/tmp-3129-h1YiHS5TxVWb)
347
354
  
348
355
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
349
356
 
350
357
  console.error
351
358
   Error! package.json: Expected entry for 'bugs' to exist
352
359
  
353
-    149 | }
354
-    150 | // tslint:disable-next-line:no-console
355
-  > 151 | console.error(this.getMessage(str, depth));
356
-    | ^
357
-    152 | }
358
-    153 |
359
-    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) {
360
367
  
361
368
   at WorkspaceContextImpl.printError (../core/src/PackageContext.ts:151:13)
362
369
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
@@ -371,7 +378,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
371
378
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
372
379
 
373
380
  console.log
374
- package (/tmp/tmp-3177-rx022IB4Vh1y)
381
+ package (/tmp/tmp-3129-Y2GT9ISw7Fjw)
375
382
  
376
383
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
377
384
 
@@ -381,7 +388,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
381
388
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
382
389
 
383
390
  console.log
384
- package (/tmp/tmp-3177-wC66wzdDPt3x)
391
+ package (/tmp/tmp-3129-NmLhv18Xhmnr)
385
392
  
386
393
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
387
394
 
@@ -391,20 +398,20 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
391
398
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
392
399
 
393
400
  console.log
394
- package (/tmp/tmp-3177-dnM5rHCnT4w7)
401
+ package (/tmp/tmp-3129-Dfq19zpfEpZF)
395
402
  
396
403
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
397
404
 
398
405
  console.error
399
406
   Error! package.json: Expected entry for 'bugs' to exist
400
407
  
401
-    149 | }
402
-    150 | // tslint:disable-next-line:no-console
403
-  > 151 | console.error(this.getMessage(str, depth));
404
-    | ^
405
-    152 | }
406
-    153 |
407
-    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) {
408
415
  
409
416
   at WorkspaceContextImpl.printError (../core/src/PackageContext.ts:151:13)
410
417
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
@@ -414,20 +421,20 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
414
421
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
415
422
 
416
423
  console.log
417
- package (/tmp/tmp-3177-Tk0nWJUKsHVX)
424
+ package (/tmp/tmp-3129-jeSlKG7Omcrq)
418
425
  
419
426
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
420
427
 
421
428
  console.error
422
429
   Error! package.json: Expected entry for 'bugs' to exist
423
430
  
424
-    149 | }
425
-    150 | // tslint:disable-next-line:no-console
426
-  > 151 | console.error(this.getMessage(str, depth));
427
-    | ^
428
-    152 | }
429
-    153 |
430
-    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) {
431
438
  
432
439
   at WorkspaceContextImpl.printError (../core/src/PackageContext.ts:151:13)
433
440
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
@@ -436,6 +443,15 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
436
443
   at Object.check (src/util/makeRule.ts:20:27)
437
444
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:186:10)
438
445
 
446
+  PASS  src/__tests__/nestedWorkspaces.spec.ts
447
+ nestedWorkspaces
448
+ ✓ checks correctly when no packages (13 ms)
449
+ ✓ checks correctly when one level packages (6 ms)
450
+ ✓ checks fail when one level packages with no workspaces field (5 ms)
451
+ ✓ checks correctly when two level packages with two level workspaces field (4 ms)
452
+ ✓ checks fail when two level packages with one level workspaces field (10 ms)
453
+ ✓ checks correctly when three level packages with three level workspaces field (4 ms)
454
+
439
455
  console.log
440
456
  Fixed! package.json: Expected standardized entry for 'repository'
441
457
  
@@ -444,43 +460,32 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
444
460
   PASS  src/__tests__/packageEntry.spec.ts
445
461
  expectPackageEntries (SimpleHost)
446
462
  fix: true
447
- ✓ fixes missing entries (25 ms)
463
+ ✓ fixes missing entries (14 ms)
448
464
  ✓ fixes missing nested entries (5 ms)
449
- ✓ doesn't error for nested entries that are defined (1 ms)
450
- ✓ errors for keys that are missing (9 ms)
451
- ✓ handles both entries and entriesExist (9 ms)
465
+ ✓ doesn't error for nested entries that are defined (12 ms)
466
+ ✓ errors for keys that are missing (8 ms)
467
+ ✓ handles both entries and entriesExist (11 ms)
452
468
  expectPackageEntries (CachingHost)
453
469
  fix: true
454
- ✓ fixes missing entries (13 ms)
455
- ✓ fixes missing nested entries (2 ms)
470
+ ✓ fixes missing entries (6 ms)
471
+ ✓ fixes missing nested entries (4 ms)
456
472
  ✓ doesn't error for nested entries that are defined (1 ms)
457
- ✓ errors for keys that are missing (4 ms)
458
- ✓ handles both entries and entriesExist (15 ms)
473
+ ✓ errors for keys that are missing (8 ms)
474
+ ✓ handles both entries and entriesExist (16 ms)
459
475
 
460
-  PASS  src/__tests__/bannedDependencies.spec.ts
461
- bannedDependencies
462
- ✓ Flags banned dependencies correctly (7 ms)
463
- ✓ Flags banned dependencies correctly w legacy globs (2 ms)
464
- ✓ Flags banned dependencies correctly w new globs (3 ms)
465
- ✓ Flags banned dependencies correctly w exact (2 ms)
466
- ✓ Flags banned transitives correctly (8 ms)
467
-
468
-  PASS  src/__tests__/nestedWorkspaces.spec.ts
469
- nestedWorkspaces
470
- ✓ checks correctly when no packages (17 ms)
471
- ✓ checks correctly when one level packages (5 ms)
472
- ✓ checks fail when one level packages with no workspaces field (3 ms)
473
- ✓ checks correctly when two level packages with two level workspaces field (5 ms)
474
- ✓ checks fail when two level packages with one level workspaces field (4 ms)
475
- ✓ checks correctly when three level packages with three level workspaces field (4 ms)
476
+  PASS  src/__tests__/consistentDependencies.spec.ts
477
+ consistentDependencies
478
+ ✓ checks correctly (13 ms)
479
+ ✓ fixes correctly (4 ms)
480
+ ✓ ignores ignored dependencies (2 ms)
476
481
 
477
482
   PASS  src/__tests__/requireDependency.spec.ts
478
483
  requireDependency
479
- ✓ checks correctly (12 ms)
480
- ✓ fixes correctly (20 ms)
484
+ ✓ checks correctly (27 ms)
485
+ ✓ fixes correctly (5 ms)
481
486
 
482
487
  console.log
483
- package (/tmp/tmp-3171-76J63cOtgtIn)
488
+ package (/tmp/tmp-3122-DPAHqKiQXptG)
484
489
  
485
490
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
486
491
 
@@ -490,7 +495,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
490
495
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
491
496
 
492
497
  console.log
493
- package-unknown-keys (/tmp/tmp-3171-NOVUHkV79ws6)
498
+ package-unknown-keys (/tmp/tmp-3122-MWLNGzuUNpdO)
494
499
  
495
500
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
496
501
 
@@ -500,7 +505,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
500
505
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
501
506
 
502
507
  console.log
503
- package (/tmp/tmp-3171-WFAVgu7sifu3)
508
+ package (/tmp/tmp-3122-12mlKCdAoUQ3)
504
509
  
505
510
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
506
511
 
@@ -510,7 +515,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
510
515
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
511
516
 
512
517
  console.log
513
- package (/tmp/tmp-3171-LIgYeKr3fA7C)
518
+ package (/tmp/tmp-3122-t0N204zpaX0b)
514
519
  
515
520
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
516
521
 
@@ -520,7 +525,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
520
525
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
521
526
 
522
527
  console.log
523
- package-unknown-keys (/tmp/tmp-3171-zbdm6HGAkkyf)
528
+ package-unknown-keys (/tmp/tmp-3122-fR0cK4RSORhZ)
524
529
  
525
530
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
526
531
 
@@ -530,7 +535,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
530
535
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
531
536
 
532
537
  console.log
533
- package (/tmp/tmp-3171-Lte37aRt1pnk)
538
+ package (/tmp/tmp-3122-TstyQ6vS7FmR)
534
539
  
535
540
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
536
541
 
@@ -542,25 +547,19 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
542
547
   PASS  src/__tests__/packageOrder.spec.ts
543
548
  expectPackageOrder (SimpleHost)
544
549
  fix: true
545
- ✓ fixes order for expected keys (80 ms)
546
- ✓ fixes order for unexpected keys (16 ms)
547
- ✓ fixes order using function (5 ms)
550
+ ✓ fixes order for expected keys (58 ms)
551
+ ✓ fixes order for unexpected keys (10 ms)
552
+ ✓ fixes order using function (4 ms)
548
553
  ✓ does nothing if already order (1 ms)
549
554
  expectPackageOrder (CachingHost)
550
555
  fix: true
551
- ✓ fixes order for expected keys (15 ms)
556
+ ✓ fixes order for expected keys (7 ms)
552
557
  ✓ fixes order for unexpected keys (5 ms)
553
- ✓ fixes order using function (3 ms)
558
+ ✓ fixes order using function (5 ms)
554
559
  ✓ does nothing if already order (1 ms)
555
560
 
556
-  PASS  src/__tests__/consistentDependencies.spec.ts
557
- consistentDependencies
558
- ✓ checks correctly (15 ms)
559
- ✓ fixes correctly (4 ms)
560
- ✓ ignores ignored dependencies (3 ms)
561
-
562
561
  console.log
563
- foo-lib (/tmp/tmp-3171-oz7LUw3mFV3O)
562
+ foo-lib (/tmp/tmp-3123-i5arU1knGTni)
564
563
  
565
564
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
566
565
 
@@ -570,17 +569,27 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
570
569
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
571
570
 
572
571
  console.log
573
- rootProject (/tmp/tmp-3177-wpywmQCQSQuQ)
572
+ foo-lib (/tmp/tmp-3123-QLsBS0p2b059)
574
573
  
575
574
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
576
575
 
577
576
  console.log
578
- Fixed! foo.txt: Expect file contents to match
577
+ Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
579
578
  
580
579
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
581
580
 
581
+  PASS  src/__tests__/alphabeticalScripts.spec.ts
582
+ alphabeticalScripts (SimpleHost)
583
+ fix: true
584
+ ✓ fixes unsorted scripts (72 ms)
585
+ ✓ does nothing if already sorted (1 ms)
586
+ alphabeticalScripts (CachingHost)
587
+ fix: true
588
+ ✓ fixes unsorted scripts (12 ms)
589
+ ✓ does nothing if already sorted (1 ms)
590
+
582
591
  console.log
583
- rootProject (/tmp/tmp-3177-JGcbAtVFxZbY)
592
+ rootProject (/tmp/tmp-3129-dJTM4mN6skMw)
584
593
  
585
594
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
586
595
 
@@ -590,27 +599,27 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
590
599
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
591
600
 
592
601
  console.log
593
- rootProject (/tmp/tmp-3177-2SbO8813oO5A)
602
+ rootProject (/tmp/tmp-3129-4vI9MBLc2j59)
594
603
  
595
604
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
596
605
 
597
606
  console.log
598
- Fixed! nested/foo.txt: Expect file contents to match
607
+ Fixed! foo.txt: Expect file contents to match
599
608
  
600
609
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
601
610
 
602
611
  console.log
603
- foo-lib (/tmp/tmp-3171-abCDVBDQGdH7)
612
+ rootProject (/tmp/tmp-3129-18lPNpCP74G6)
604
613
  
605
614
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
606
615
 
607
616
  console.log
608
- Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
617
+ Fixed! nested/foo.txt: Expect file contents to match
609
618
  
610
619
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
611
620
 
612
621
  console.log
613
- rootProject (/tmp/tmp-3177-rNyNV53B69NA)
622
+ rootProject (/tmp/tmp-3129-B3A19DlXSluA)
614
623
  
615
624
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
616
625
 
@@ -619,18 +628,8 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
619
628
  
620
629
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
621
630
 
622
-  PASS  src/__tests__/alphabeticalScripts.spec.ts
623
- alphabeticalScripts (SimpleHost)
624
- fix: true
625
- ✓ fixes unsorted scripts (14 ms)
626
- ✓ does nothing if already sorted (1 ms)
627
- alphabeticalScripts (CachingHost)
628
- fix: true
629
- ✓ fixes unsorted scripts (14 ms)
630
- ✓ does nothing if already sorted (2 ms)
631
-
632
631
  console.log
633
- rootProject (/tmp/tmp-3177-V48O5AQg01nT)
632
+ rootProject (/tmp/tmp-3129-n3y32xcRcdJN)
634
633
  
635
634
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
636
635
 
@@ -640,7 +639,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
640
639
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
641
640
 
642
641
  console.log
643
- rootProject (/tmp/tmp-3177-0uykn4UJpAEH)
642
+ rootProject (/tmp/tmp-3129-CQysU7tEtPq0)
644
643
  
645
644
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
646
645
 
@@ -652,17 +651,17 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
652
651
   PASS  src/__tests__/fileContents.spec.ts
653
652
  fileContents (SimpleHost)
654
653
  fix: true
655
- ✓ works with async generator (8 ms)
656
- ✓ fixes missing file (3 ms)
657
- ✓ fixes missing nested file (5 ms)
654
+ ✓ works with async generator (7 ms)
655
+ ✓ fixes missing file (2 ms)
656
+ ✓ fixes missing nested file (3 ms)
658
657
  fileContents (CachingHost)
659
658
  fix: true
660
- ✓ works with async generator (6 ms)
661
- ✓ fixes missing file (4 ms)
662
- ✓ fixes missing nested file (5 ms)
659
+ ✓ works with async generator (4 ms)
660
+ ✓ fixes missing file (3 ms)
661
+ ✓ fixes missing nested file (3 ms)
663
662
 
664
663
  Test Suites: 11 passed, 11 total
665
664
  Tests: 118 passed, 118 total
666
665
  Snapshots: 0 total
667
- Time: 9.728 s
666
+ Time: 9.954 s
668
667
  Ran all test suites.