@monorepolint/rules 0.5.0-alpha.133 → 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,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:3075) 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.442 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)
14
+ ✓ Does nothing when arguments are empty (10 ms)
15
+ ✓ Fixes packages that have an incorrect dependency version (5 ms)
16
+ ✓ Ignores packages that have a correct dependency version (2 ms)
17
+ ✓ Fixes packages that have an incorrect devDependency version (2 ms)
19
18
  ✓ Ignores packages that have a correct devDependency version (2 ms)
20
- ✓ Fixes packages that have an incorrect dependency and devDependency versions (4 ms)
19
+ ✓ Fixes packages that have an incorrect dependency and devDependency versions (8 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 (2 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-3077-27byg176jCZs)
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-3077-SUNaA8gaojFM)
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-3077-6Xw3eJSYv2ff)
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-3077-NQqQwvANuzOa)
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-3077-NCA3cz4ENqlg)
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-3077-i0a2UAI5qeUz)
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-3077-jKJ9jVWNUQug)
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:3077) 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-3077-zRXFTUXJCzYz)
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-3077-IisiGSdsxtD3)
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-3077-HoL2YBJvS9pK)
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-3077-k5e3drWZMJGP)
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-3077-6L5uwr7uF9rx)
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-3077-UIe6TYvzTucY)
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-3077-bnJJfXkOMb5S)
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 (6.829 s)
221
220
  expectPackageScript (SimpleHost)
222
221
  fix: false
223
- ✓ handles an empty script section (70 ms)
222
+ ✓ handles an empty script section (117 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 (11 ms)
225
+ ✓ adds a script (18 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)
229
- ✓ uses the fixValue for fixing if provided (5 ms)
230
- ✓ can fix to empty (8 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)
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 (17 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
235
+ ✓ fixes an empty script section (6 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)
239
+ ✓ uses the fixValue for fixing if provided (5 ms)
240
+ ✓ can fix to empty (4 ms)
241
+ ✓ can allow only empty (12 ms)
242
+
243
+ (node:3074) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
245
244
  (Use `node --trace-warnings ...` to show where the warning was created)
246
-  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.374 s)
245
+  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.084 s)
247
246
  mustSatisfyPeerDependencies
248
247
  ✓ 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)
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)
255
254
  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)
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)
260
259
  Determines dependencies satisfaction correctly
261
260
  ✓ version is version (1 ms)
262
- ✓ version satisfies a range (4 ms)
263
- ✓ higher version satisfies a range (1 ms)
261
+ ✓ version satisfies a range (2 ms)
262
+ ✓ higher version satisfies a range (3 ms)
264
263
  ✓ version satisfies a greator or equal version range (1 ms)
265
- ✓ higher version satisfies a greator or equal version range (1 ms)
266
- ✓ version satisfies 'any' range (8 ms)
264
+ ✓ higher version satisfies a greator or equal version range (2 ms)
265
+ ✓ version satisfies 'any' range (1 ms)
267
266
  ✓ greator or equal version range satisfies 'any' range (1 ms)
268
- ✓ range satisfies 'any' range (1 ms)
267
+ ✓ range satisfies 'any' range (3 ms)
269
268
  ✓ union range satisfies 'any' range (1 ms)
270
269
  ✓ version found in union start (1 ms)
271
270
  ✓ version found in union end (1 ms)
272
271
  ✓ 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)
275
- ✓ higher version satisfies a range in union end (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
276
275
  ✓ range found in union start
277
- ✓ range found in union end
276
+ ✓ range found in union end (1 ms)
278
277
  ✓ union satisfies greator or equal version range (1 ms)
279
278
  ✓ greator or equal version range satisfies greator or equal version range (1 ms)
280
279
  ✓ equivalent greator or equal version ranges satisfy each other (1 ms)
281
280
  ✓ higher range satisfies a range in union start (1 ms)
282
281
  ✓ higher range satisfies a range in union end (1 ms)
283
282
  ✓ equivalent 'any' ranges satisfy each other (1 ms)
284
- ✓ equivalent major ranges satisfy each other (11 ms)
285
- ✓ version missing in union
283
+ ✓ equivalent major ranges satisfy each other (4 ms)
284
+ ✓ version missing in union (1 ms)
286
285
  ✓ range missing in union (1 ms)
287
286
  Determines dependencies intersections correctly
288
- ✓ equivalence (1 ms)
287
+ ✓ equivalence (2 ms)
289
288
  ✓ exact vs any (1 ms)
290
- ✓ major vs any (1 ms)
291
- ✓ 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)
296
- ✓ exact vs major (1 ms)
297
- ✓ major vs major (2 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)
298
297
  ✓ exact vs union (1 ms)
299
298
  ✓ major vs union (2 ms)
300
- ✓ union 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)
301
308
 
302
309
  console.log
303
- package (/tmp/tmp-3177-2bUFUyaHNEi6)
310
+ package (/tmp/tmp-3077-giEA3mKdRUx1)
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-3077-43DIKE6Yahqa)
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-3077-hgx2Dy8dVnir)
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-3077-O062Y0oxN4Ax)
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-3077-dv5YNhHjyQmW)
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-3077-gIKBhF6Qmzh8)
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-3077-z1r7H8JL9u1C)
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-3077-17BA07Yll5qh)
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)
@@ -444,43 +451,35 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
444
451
   PASS  src/__tests__/packageEntry.spec.ts
445
452
  expectPackageEntries (SimpleHost)
446
453
  fix: true
447
- ✓ fixes missing entries (25 ms)
448
- ✓ 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)
454
+ ✓ fixes missing entries (22 ms)
455
+ ✓ fixes missing nested entries (4 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)
452
459
  expectPackageEntries (CachingHost)
453
460
  fix: true
454
- ✓ fixes missing entries (13 ms)
455
- ✓ fixes missing nested entries (2 ms)
461
+ ✓ fixes missing entries (7 ms)
462
+ ✓ fixes missing nested entries (5 ms)
456
463
  ✓ 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)
459
-
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)
464
+ ✓ errors for keys that are missing (8 ms)
465
+ ✓ handles both entries and entriesExist (9 ms)
467
466
 
468
467
   PASS  src/__tests__/nestedWorkspaces.spec.ts
469
468
  nestedWorkspaces
470
- ✓ checks correctly when no packages (17 ms)
469
+ ✓ checks correctly when no packages (9 ms)
471
470
  ✓ checks correctly when one level packages (5 ms)
472
- ✓ checks fail when one level packages with no workspaces field (3 ms)
471
+ ✓ checks fail when one level packages with no workspaces field (8 ms)
473
472
  ✓ 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)
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)
476
475
 
477
476
   PASS  src/__tests__/requireDependency.spec.ts
478
477
  requireDependency
479
- ✓ checks correctly (12 ms)
480
- ✓ fixes correctly (20 ms)
478
+ ✓ checks correctly (28 ms)
479
+ ✓ fixes correctly (6 ms)
481
480
 
482
481
  console.log
483
- package (/tmp/tmp-3171-76J63cOtgtIn)
482
+ package (/tmp/tmp-3077-d2c1shMv3lXz)
484
483
  
485
484
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
486
485
 
@@ -490,7 +489,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
490
489
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
491
490
 
492
491
  console.log
493
- package-unknown-keys (/tmp/tmp-3171-NOVUHkV79ws6)
492
+ package-unknown-keys (/tmp/tmp-3077-l1enrDcAG1Yc)
494
493
  
495
494
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
496
495
 
@@ -500,7 +499,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
500
499
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
501
500
 
502
501
  console.log
503
- package (/tmp/tmp-3171-WFAVgu7sifu3)
502
+ package (/tmp/tmp-3077-vvQSw0pzrlj7)
504
503
  
505
504
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
506
505
 
@@ -510,7 +509,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
510
509
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
511
510
 
512
511
  console.log
513
- package (/tmp/tmp-3171-LIgYeKr3fA7C)
512
+ package (/tmp/tmp-3077-focJcIBccrxe)
514
513
  
515
514
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
516
515
 
@@ -520,7 +519,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
520
519
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
521
520
 
522
521
  console.log
523
- package-unknown-keys (/tmp/tmp-3171-zbdm6HGAkkyf)
522
+ package-unknown-keys (/tmp/tmp-3077-ikuhj0T3d1od)
524
523
  
525
524
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
526
525
 
@@ -530,37 +529,37 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
530
529
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
531
530
 
532
531
  console.log
533
- package (/tmp/tmp-3171-Lte37aRt1pnk)
532
+ package (/tmp/tmp-3077-ayPIQXbMDjAc)
534
533
  
535
534
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
536
535
 
537
536
  console.log
537
+  PASS  src/__tests__/packageOrder.spec.ts
538
538
  Fixed! package.json: Incorrect order of fields in package.json
539
539
  
540
540
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
541
-
542
-  PASS  src/__tests__/packageOrder.spec.ts
543
541
  expectPackageOrder (SimpleHost)
542
+
544
543
  fix: true
545
- ✓ fixes order for expected keys (80 ms)
546
- ✓ fixes order for unexpected keys (16 ms)
544
+ ✓ fixes order for expected keys (16 ms)
545
+ ✓ fixes order for unexpected keys (34 ms)
547
546
  ✓ fixes order using function (5 ms)
548
547
  ✓ does nothing if already order (1 ms)
549
548
  expectPackageOrder (CachingHost)
550
549
  fix: true
551
- ✓ fixes order for expected keys (15 ms)
552
- ✓ fixes order for unexpected keys (5 ms)
553
- ✓ fixes order using function (3 ms)
554
- ✓ 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
555
554
 
556
555
   PASS  src/__tests__/consistentDependencies.spec.ts
557
556
  consistentDependencies
558
- ✓ checks correctly (15 ms)
559
- ✓ fixes correctly (4 ms)
560
- ✓ ignores ignored dependencies (3 ms)
557
+ ✓ checks correctly (12 ms)
558
+ ✓ fixes correctly (2 ms)
559
+ ✓ ignores ignored dependencies (2 ms)
561
560
 
562
561
  console.log
563
- foo-lib (/tmp/tmp-3171-oz7LUw3mFV3O)
562
+ foo-lib (/tmp/tmp-3077-D8sW3pL75s7I)
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-3077-7tCwR6HVBLZC)
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 (9 ms)
585
+ ✓ does nothing if already sorted (1 ms)
586
+ alphabeticalScripts (CachingHost)
587
+ fix: true
588
+ ✓ fixes unsorted scripts (4 ms)
589
+ ✓ does nothing if already sorted (1 ms)
590
+
582
591
  console.log
583
- rootProject (/tmp/tmp-3177-JGcbAtVFxZbY)
592
+ rootProject (/tmp/tmp-3075-W1GYzH08V0uh)
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-3075-JQ5tDHaZ8Jyn)
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-3075-Na3CcANo84Rk)
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-3075-3wseX6zXWeGh)
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-3075-FYaOZNLnGv4o)
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-3075-M8UmWBZv0uiL)
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 (44 ms)
655
+ ✓ fixes missing file (2 ms)
656
+ ✓ fixes missing nested file (2 ms)
658
657
  fileContents (CachingHost)
659
658
  fix: true
660
- ✓ works with async generator (6 ms)
661
- ✓ fixes missing file (4 ms)
659
+ ✓ works with async generator (10 ms)
660
+ ✓ fixes missing file (8 ms)
662
661
  ✓ fixes missing nested file (5 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.57 s
668
667
  Ran all test suites.