@monorepolint/rules 0.6.0-alpha.4 → 0.6.0-alpha.6

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.
Files changed (107) hide show
  1. package/.turbo/turbo-clean.log +1 -1
  2. package/.turbo/turbo-compile-typescript.log +1 -1
  3. package/.turbo/turbo-lint.log +1 -1
  4. package/.turbo/turbo-test.log +443 -92
  5. package/.turbo/turbo-transpile-typescript.log +5 -5
  6. package/CHANGELOG.md +112 -0
  7. package/build/js/index.js +413 -368
  8. package/build/js/index.js.map +1 -1
  9. package/build/tsconfig.tsbuildinfo +1 -1
  10. package/build/types/REMOVE.d.ts +2 -0
  11. package/build/types/REMOVE.d.ts.map +1 -0
  12. package/build/types/__tests__/alphabeticalDependencies.spec.d.ts +8 -0
  13. package/build/types/__tests__/alphabeticalDependencies.spec.d.ts.map +1 -0
  14. package/build/types/__tests__/forceError.spec.d.ts +8 -0
  15. package/build/types/__tests__/forceError.spec.d.ts.map +1 -0
  16. package/build/types/__tests__/oncePerPackage.spec.d.ts +8 -0
  17. package/build/types/__tests__/oncePerPackage.spec.d.ts.map +1 -0
  18. package/build/types/__tests__/standardTsconfig.spec.d.ts +8 -0
  19. package/build/types/__tests__/standardTsconfig.spec.d.ts.map +1 -0
  20. package/build/types/bannedDependencies.d.ts +9 -33
  21. package/build/types/bannedDependencies.d.ts.map +1 -1
  22. package/build/types/consistentDependencies.d.ts +6 -6
  23. package/build/types/consistentDependencies.d.ts.map +1 -1
  24. package/build/types/consistentVersions.d.ts +6 -10
  25. package/build/types/consistentVersions.d.ts.map +1 -1
  26. package/build/types/fileContents.d.ts +3 -2
  27. package/build/types/fileContents.d.ts.map +1 -1
  28. package/build/types/index.d.ts +1 -0
  29. package/build/types/index.d.ts.map +1 -1
  30. package/build/types/mustSatisfyPeerDependencies.d.ts +12 -190
  31. package/build/types/mustSatisfyPeerDependencies.d.ts.map +1 -1
  32. package/build/types/nestedWorkspaces.d.ts +2 -2
  33. package/build/types/nestedWorkspaces.d.ts.map +1 -1
  34. package/build/types/oncePerPackage.d.ts +6 -6
  35. package/build/types/oncePerPackage.d.ts.map +1 -1
  36. package/build/types/packageEntry.d.ts +11 -33
  37. package/build/types/packageEntry.d.ts.map +1 -1
  38. package/build/types/packageOrder.d.ts +2 -1
  39. package/build/types/packageOrder.d.ts.map +1 -1
  40. package/build/types/packageScript.d.ts +13 -22
  41. package/build/types/packageScript.d.ts.map +1 -1
  42. package/build/types/requireDependency.d.ts +5 -20
  43. package/build/types/requireDependency.d.ts.map +1 -1
  44. package/build/types/standardTsconfig.d.ts +12 -19
  45. package/build/types/standardTsconfig.d.ts.map +1 -1
  46. package/build/types/util/zodSchemas.d.ts +14 -0
  47. package/build/types/util/zodSchemas.d.ts.map +1 -0
  48. package/coverage/block-navigation.js +1 -1
  49. package/coverage/clover.xml +1420 -1452
  50. package/coverage/coverage-final.json +21 -19
  51. package/coverage/index.html +27 -27
  52. package/coverage/sorter.js +21 -7
  53. package/coverage/src/REMOVE.ts.html +88 -0
  54. package/coverage/src/alphabeticalDependencies.ts.html +15 -15
  55. package/coverage/src/alphabeticalScripts.ts.html +5 -5
  56. package/coverage/src/bannedDependencies.ts.html +20 -53
  57. package/coverage/src/consistentDependencies.ts.html +20 -14
  58. package/coverage/src/consistentVersions.ts.html +330 -183
  59. package/coverage/src/fileContents.ts.html +223 -88
  60. package/coverage/src/forceError.ts.html +31 -31
  61. package/coverage/src/index.html +104 -89
  62. package/coverage/src/index.ts.html +11 -5
  63. package/coverage/src/mustSatisfyPeerDependencies.ts.html +15 -501
  64. package/coverage/src/nestedWorkspaces.ts.html +5 -5
  65. package/coverage/src/oncePerPackage.ts.html +31 -31
  66. package/coverage/src/packageEntry.ts.html +121 -91
  67. package/coverage/src/packageOrder.ts.html +44 -14
  68. package/coverage/src/packageScript.ts.html +235 -88
  69. package/coverage/src/requireDependency.ts.html +241 -82
  70. package/coverage/src/standardTsconfig.ts.html +212 -212
  71. package/coverage/src/util/checkAlpha.ts.html +40 -40
  72. package/coverage/src/util/createRuleFactory.ts.html +19 -19
  73. package/coverage/src/util/index.html +30 -15
  74. package/coverage/src/util/makeDirectory.ts.html +11 -11
  75. package/coverage/src/util/packageDependencyGraphService.ts.html +1 -1
  76. package/coverage/src/util/zodSchemas.ts.html +130 -0
  77. package/package.json +15 -15
  78. package/src/REMOVE.ts +1 -0
  79. package/src/__tests__/alphabeticalDependencies.spec.ts +102 -0
  80. package/src/__tests__/alphabeticalScripts.spec.ts +18 -0
  81. package/src/__tests__/bannedDependencies.spec.ts +49 -0
  82. package/src/__tests__/consistentDependencies.spec.ts +23 -0
  83. package/src/__tests__/consistentVersions.spec.ts +142 -0
  84. package/src/__tests__/fileContents.spec.ts +348 -0
  85. package/src/__tests__/forceError.spec.ts +70 -0
  86. package/src/__tests__/mustSatisfyPeerDependencies.spec.ts +44 -0
  87. package/src/__tests__/nestedWorkspaces.spec.ts +14 -0
  88. package/src/__tests__/oncePerPackage.spec.ts +75 -0
  89. package/src/__tests__/packageEntry.spec.ts +177 -0
  90. package/src/__tests__/packageOrder.spec.ts +22 -0
  91. package/src/__tests__/packageScript.spec.ts +549 -0
  92. package/src/__tests__/requireDependency.spec.ts +259 -2
  93. package/src/__tests__/standardTsconfig.spec.ts +91 -0
  94. package/src/bannedDependencies.ts +14 -25
  95. package/src/consistentDependencies.ts +10 -8
  96. package/src/consistentVersions.ts +132 -83
  97. package/src/fileContents.ts +80 -35
  98. package/src/index.ts +2 -0
  99. package/src/mustSatisfyPeerDependencies.ts +10 -172
  100. package/src/nestedWorkspaces.ts +4 -4
  101. package/src/oncePerPackage.ts +6 -6
  102. package/src/packageEntry.ts +60 -50
  103. package/src/packageOrder.ts +19 -9
  104. package/src/packageScript.ts +67 -18
  105. package/src/requireDependency.ts +84 -31
  106. package/src/standardTsconfig.ts +26 -26
  107. package/src/util/zodSchemas.ts +15 -0
@@ -1,272 +1,623 @@
1
1
 
2
- > @monorepolint/rules@0.6.0-alpha.4 test /home/runner/work/monorepolint/monorepolint/packages/rules
2
+ > @monorepolint/rules@0.6.0-alpha.6 test /home/runner/work/monorepolint/monorepolint/packages/rules
3
3
  > vitest run --passWithNoTests
4
4
 
5
- [?25l
6
-  RUN  v3.0.3 /home/runner/work/monorepolint/monorepolint/packages/rules
5
+
6
+  RUN  v3.2.4 /home/runner/work/monorepolint/monorepolint/packages/rules
7
7
  Coverage enabled with v8
8
8
 
9
9
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: false > handles an empty script section
10
- package-without-scripts (/tmp/tmp-3686-2u1x92UAft5H)
10
+ package-without-scripts (/tmp/tmp-3834-FX6Ggsos0VDS)
11
11
 
12
12
  stderr | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: false > handles an empty script section
13
13
   Error! package.json: No scripts block in package.json
14
14
 
15
15
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > fixes an empty script section
16
- package-without-scripts (/tmp/tmp-3686-pmlX4pfMUX5M)
16
+ package-without-scripts (/tmp/tmp-3834-wcTK94EnNFUb)
17
17
 
18
18
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > fixes an empty script section
19
19
   Fixed! package.json: No scripts block in package.json
20
20
 
21
21
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > adds a script
22
- package-with-scripts (/tmp/tmp-3686-YyWuYMhV0bqb)
22
+ package-with-scripts (/tmp/tmp-3834-1d2PjDKK6mH6)
23
23
 
24
24
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > adds a script
25
25
   Fixed! package.json: Expected standardized script entry for 'missing'. Valid options: 'missing value'
26
26
 
27
27
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > errors if long form is used and no value matches and there is no fixValue
28
- package-with-scripts (/tmp/tmp-3686-Gke653lsZEN9)
28
+ package-with-scripts (/tmp/tmp-3834-22axjoMEcl57)
29
29
 
30
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > uses the fixValue for fixing if provided
30
31
  stderr | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > errors if long form is used and no value matches and there is no fixValue
32
+ package-with-scripts (/tmp/tmp-3834-UUczJC4HzGCQ)
31
33
   Error! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
32
34
 
33
- stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > uses the fixValue for fixing if provided
34
- package-with-scripts (/tmp/tmp-3686-ZgeQCpTyDc7s)
35
-
36
35
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > uses the fixValue for fixing if provided
37
36
   Fixed! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
38
37
 
38
+
39
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > works with async generator
40
+ rootProject (/tmp/tmp-3836-w3GtfbuSs9if)
41
+
39
42
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > can fix to empty
40
- package-with-scripts (/tmp/tmp-3686-aLYG4sPyWFtE)
43
+ package-with-scripts (/tmp/tmp-3834-ynTfAb7yALTQ)
41
44
 
42
45
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > can fix to empty
43
46
   Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: 'a', (empty)
44
47
 
45
48
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > can allow only empty
46
- package-with-scripts (/tmp/tmp-3686-7nKnDSsDfl1R)
49
+ package-with-scripts (/tmp/tmp-3834-eHIpDkvZmqAM)
47
50
 
48
51
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > can allow only empty
49
52
   Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: (empty)
50
53
 
54
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > works with async generator
55
+  Fixed! foo.txt: Expect file contents to match
56
+
57
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > fixes missing file
58
+ rootProject (/tmp/tmp-3836-KEaA2pSXylCg)
59
+
60
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > fixes missing file
61
+  Fixed! foo.txt: Expect file contents to match
62
+
63
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > fixes missing nested file
64
+ rootProject (/tmp/tmp-3836-bqxzSgV8t9mG)
65
+
66
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > fixes missing nested file
67
+  Fixed! nested/foo.txt: Expect file contents to match
68
+
69
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > deletes existing file when template is REMOVE
70
+ rootProject (/tmp/tmp-3836-fmD6zYyoa14L)
71
+
72
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > deletes existing file when template is REMOVE
73
+  Fixed! to-delete.txt: File should not exist
74
+
75
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Invalid package.json structure > handles package.json with non-object scripts
76
+ test-package (/tmp/tmp-3834-JMj00uT6XE6e)
77
+
78
+ stderr | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Invalid package.json structure > handles package.json with non-object scripts
79
+  Error! package.json: Expected standardized script entry for 'build'. Valid options: 'tsc'
80
+
81
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > Generator function error handling > handles generator function that throws an exception
82
+ rootProject (/tmp/tmp-3836-LKgBFGal75iV)
83
+
84
+ stderr | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > Generator function error handling > handles generator function that throws an exception
85
+  Error! test.txt: Generator function failed: Generator function failed
86
+
87
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > Generator function error handling > handles generator function that returns a rejected Promise
88
+ rootProject (/tmp/tmp-3836-0DeZ5zesZXmb)
89
+
90
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > Generator function error handling > handles generator function that returns non-string value
91
+ rootProject (/tmp/tmp-3836-4QZl23zSQmOs)
92
+
93
+ stderr | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > Generator function error handling > handles generator function that returns a rejected Promise
94
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > REMOVE symbol usage > can remove a script using REMOVE in options array
95
+ package-with-scripts (/tmp/tmp-3834-wifM0wj8tUcU)
96
+
97
+  Error! test.txt: Generator function failed: Async generator failed
98
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > REMOVE symbol usage > can remove a script using REMOVE in options array
99
+  Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: 'different-value', (empty)
100
+
101
+
102
+ stderr | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > Generator function error handling > handles generator function that returns non-string value
103
+  Error! test.txt: Generator function failed: Generator function must return a string or REMOVE, got number
104
+
105
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > REMOVE symbol usage > handles REMOVE on non-existent script
106
+ package-without-scripts (/tmp/tmp-3834-mBv1RlHBNzzr)
107
+
108
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > REMOVE symbol usage > handles REMOVE on non-existent script
109
+  Fixed! package.json: No scripts block in package.json
110
+
111
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Direct REMOVE syntax > removes existing script using direct REMOVE syntax
112
+ package-with-scripts (/tmp/tmp-3834-eGz7ok6GEmC9)
113
+
114
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Direct REMOVE syntax > removes existing script using direct REMOVE syntax
115
+  Fixed! package.json: Script 'exists' should be removed
116
+
117
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > File system permission errors > gracefully handles directory creation for nested files
118
+ rootProject (/tmp/tmp-3836-uzWiyz95lM4F)
119
+
120
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > File system permission errors > gracefully handles directory creation for nested files
121
+  Fixed! deeply/nested/path/test.txt: Expect file contents to match
122
+
123
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > Edge cases and file operations > handles empty string content correctly
124
+ rootProject (/tmp/tmp-3836-DF2p34rdjfB0)
125
+
126
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > Edge cases and file operations > handles empty string content correctly
127
+  Fixed! empty.txt: Expect file contents to match
128
+
129
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > Edge cases and file operations > handles very long file content
130
+ rootProject (/tmp/tmp-3836-6qGecqtyPI68)
131
+
132
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > Edge cases and file operations > handles very long file content
133
+  Fixed! long.txt: Expect file contents to match
134
+
135
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > Edge cases and file operations > handles file with special characters in content
136
+ rootProject (/tmp/tmp-3836-XFXS8dokRrOZ)
137
+
138
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > Edge cases and file operations > handles file with special characters in content
139
+  Fixed! special.txt: Expect file contents to match
140
+
141
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Direct REMOVE syntax > handles mix of REMOVE and regular script values
142
+ package-with-multiple-scripts (/tmp/tmp-3834-EGupUDb4LlgX)
143
+
144
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Direct REMOVE syntax > handles mix of REMOVE and regular script values
145
+  Fixed! package.json: Script 'build' should be removed
146
+ Fixed! package.json: Expected standardized script entry for 'test'. Valid options: 'vitest'
147
+ Fixed! package.json: Expected standardized script entry for 'start'. Valid options: 'node index.js'
148
+ Fixed! package.json: Script 'lint' should be removed
149
+
150
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Direct REMOVE syntax > handles REMOVE when scripts block doesn't exist
151
+ package-without-scripts (/tmp/tmp-3834-IUutOTn4xOWL)
152
+
153
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Direct REMOVE syntax > handles REMOVE when scripts block doesn't exist
154
+  Fixed! package.json: No scripts block in package.json
155
+
156
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > works with async generator
157
+ rootProject (/tmp/tmp-3836-PHlKKrVPChLb)
158
+
159
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > works with async generator
160
+  Fixed! foo.txt: Expect file contents to match
161
+
162
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing file
163
+ rootProject (/tmp/tmp-3836-FtUzsqfvC3V3)
164
+
165
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing file
166
+  Fixed! foo.txt: Expect file contents to match
167
+
168
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Advanced allowedValues scenarios > handles multiple options without fixValue (no fixer should be provided)
169
+ package-with-scripts (/tmp/tmp-3834-G80gRoy1CaLw)
170
+ stderr | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Advanced allowedValues scenarios > handles multiple options without fixValue (no fixer should be provided)
171
+
172
+  Error! package.json: Expected standardized script entry for 'exists'. Valid options: 'option-a', 'option-b', 'option-c'
173
+
174
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Advanced allowedValues scenarios > handles mixed option types: string + undefined + REMOVE
175
+ package-with-scripts (/tmp/tmp-3834-pbWSZOXTMG2R)
176
+
177
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing nested file
178
+ rootProject (/tmp/tmp-3836-aErLGYsNwwmC)
179
+
180
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Advanced allowedValues scenarios > handles mixed option types: string + undefined + REMOVE
181
+  Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: 'build-cmd', (empty), (empty)
182
+
183
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing nested file
184
+  Fixed! nested/foo.txt: Expect file contents to match
185
+
186
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > deletes existing file when template is REMOVE
187
+ rootProject (/tmp/tmp-3836-cUrw7Q1bXmCc)
188
+
189
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > deletes existing file when template is REMOVE
190
+  Fixed! to-delete.txt: File should not exist
191
+
192
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Advanced allowedValues scenarios > handles existing script with REMOVE in options array
193
+ package-with-scripts (/tmp/tmp-3834-3bDqe3764p84)
194
+
195
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Advanced allowedValues scenarios > handles existing script with REMOVE in options array
196
+  Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: 'different-value', (empty)
197
+
198
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Advanced allowedValues scenarios > handles fixValue: false (prevents fixing)
199
+ package-with-scripts (/tmp/tmp-3834-KXBeXaUmVZOC)
200
+
201
+ stderr | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Advanced allowedValues scenarios > handles fixValue: false (prevents fixing)
202
+  Error! package.json: Expected standardized script entry for 'exists'. Valid options: 'different-value'
203
+
204
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > Generator function error handling > handles generator function that throws an exception
205
+ rootProject (/tmp/tmp-3836-DordbtM0kGJS)
206
+
207
+ stderr | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > Generator function error handling > handles generator function that throws an exception
208
+  Error! test.txt: Generator function failed: Generator function failed
209
+
210
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Advanced allowedValues scenarios > formats error messages correctly for complex allowedValues
211
+ package-with-scripts (/tmp/tmp-3834-snv574T9jACX)
212
+
213
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Advanced allowedValues scenarios > formats error messages correctly for complex allowedValues
214
+  Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: 'cmd-a', 'cmd-b', (empty), (empty)
215
+
216
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > Generator function error handling > handles generator function that returns a rejected Promise
217
+ rootProject (/tmp/tmp-3836-0QRqQZgCh17W)
218
+ stderr | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > Generator function error handling > handles generator function that returns a rejected Promise
219
+
220
+  Error! test.txt: Generator function failed: Async generator failed
221
+
222
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Advanced allowedValues scenarios > processes multiple scripts with different allowedValues configurations
223
+ complex-package (/tmp/tmp-3834-L32e3ridKIHr)
224
+
225
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > Advanced allowedValues scenarios > processes multiple scripts with different allowedValues configurations
226
+  Fixed! package.json: Expected standardized script entry for 'script-a'. Valid options: 'correct-a1', 'correct-a2'
227
+ Fixed! package.json: Expected standardized script entry for 'script-b'. Valid options: 'correct-b', (empty)
228
+
229
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > Generator function error handling > handles generator function that returns non-string value
230
+ rootProject (/tmp/tmp-3836-G0C6DnfA5f77)
231
+
232
+ stderr | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > Generator function error handling > handles generator function that returns non-string value
233
+  Error! test.txt: Generator function failed: Generator function must return a string or REMOVE, got number
234
+
51
235
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: false > handles an empty script section
52
- package-without-scripts (/tmp/tmp-3686-RdPdmvf7Sm7n)
236
+ package-without-scripts (/tmp/tmp-3834-xpR2CPs3mTcp)
237
+
238
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > File system permission errors > gracefully handles directory creation for nested files
239
+ rootProject (/tmp/tmp-3836-HSnDCoXwfhkn)
240
+
241
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > File system permission errors > gracefully handles directory creation for nested files
242
+  Fixed! deeply/nested/path/test.txt: Expect file contents to match
53
243
 
54
244
  stderr | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: false > handles an empty script section
55
245
   Error! package.json: No scripts block in package.json
56
246
 
247
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > Edge cases and file operations > handles empty string content correctly
248
+ rootProject (/tmp/tmp-3836-JsqNpzzAGuZ8)
249
+
250
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > Edge cases and file operations > handles empty string content correctly
251
+  Fixed! empty.txt: Expect file contents to match
252
+
253
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > Edge cases and file operations > handles very long file content
254
+ rootProject (/tmp/tmp-3836-aUGF46RKI30e)
255
+
256
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > Edge cases and file operations > handles very long file content
257
+  Fixed! long.txt: Expect file contents to match
258
+
57
259
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > fixes an empty script section
58
- package-without-scripts (/tmp/tmp-3686-0ahnbvUrI0Gn)
260
+ package-without-scripts (/tmp/tmp-3834-DwkUlT2LFjuq)
59
261
 
60
262
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > fixes an empty script section
61
263
   Fixed! package.json: No scripts block in package.json
62
264
 
265
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > Edge cases and file operations > handles file with special characters in content
266
+ rootProject (/tmp/tmp-3836-odP88JYAXZfL)
267
+
268
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > Edge cases and file operations > handles file with special characters in content
269
+  Fixed! special.txt: Expect file contents to match
270
+
63
271
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > adds a script
64
- package-with-scripts (/tmp/tmp-3686-OIbRRNGe718z)
272
+ package-with-scripts (/tmp/tmp-3834-29d54PqiG4FK)
65
273
 
66
274
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > adds a script
67
275
   Fixed! package.json: Expected standardized script entry for 'missing'. Valid options: 'missing value'
68
276
 
69
277
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > errors if long form is used and no value matches and there is no fixValue
70
- package-with-scripts (/tmp/tmp-3686-GUT2xJ7zi82Q)
278
+ package-with-scripts (/tmp/tmp-3834-Xy3wcbCa5ahF)
71
279
 
72
280
  stderr | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > errors if long form is used and no value matches and there is no fixValue
73
281
   Error! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
74
282
 
75
283
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > uses the fixValue for fixing if provided
76
- package-with-scripts (/tmp/tmp-3686-xYaxlRAdyOVC)
284
+ package-with-scripts (/tmp/tmp-3834-jxmvlNBWiHtY)
77
285
 
78
286
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > uses the fixValue for fixing if provided
79
287
   Fixed! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
80
288
 
81
289
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > can fix to empty
82
- package-with-scripts (/tmp/tmp-3686-x9RovLymRe6C)
290
+ package-with-scripts (/tmp/tmp-3834-kBYBIeSkYHWs)
83
291
 
84
292
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > can fix to empty
85
293
   Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: 'a', (empty)
86
294
 
87
295
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > can allow only empty
88
- package-with-scripts (/tmp/tmp-3686-PO4byOWlKMQA)
296
+ package-with-scripts (/tmp/tmp-3834-ny1QxwYCpxno)
89
297
 
90
298
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > can allow only empty
91
299
   Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: (empty)
92
300
 
93
- ✓ src/__tests__/packageScript.spec.ts (16 tests) 62ms
94
- ✓ src/__tests__/consistentVersions.spec.ts (8 tests) 45ms
95
- ✓ src/__tests__/mustSatisfyPeerDependencies.spec.ts (50 tests) 143ms
301
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Invalid package.json structure > handles package.json with non-object scripts
302
+ test-package (/tmp/tmp-3834-RSFkKlitraAH)
303
+
304
+ stderr | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Invalid package.json structure > handles package.json with non-object scripts
305
+  Error! package.json: Expected standardized script entry for 'build'. Valid options: 'tsc'
306
+
307
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > REMOVE symbol usage > can remove a script using REMOVE in options array
308
+ package-with-scripts (/tmp/tmp-3834-izZ3lbE9sstR)
309
+
310
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > REMOVE symbol usage > can remove a script using REMOVE in options array
311
+  Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: 'different-value', (empty)
312
+
313
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > REMOVE symbol usage > handles REMOVE on non-existent script
314
+ package-without-scripts (/tmp/tmp-3834-qwV0lpDvZjRp)
315
+
316
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > REMOVE symbol usage > handles REMOVE on non-existent script
317
+  Fixed! package.json: No scripts block in package.json
318
+
319
+ ✓ src/__tests__/fileContents.spec.ts (34 tests) 136ms
320
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Direct REMOVE syntax > removes existing script using direct REMOVE syntax
321
+ package-with-scripts (/tmp/tmp-3834-RJXVqFtfEfDV)
322
+
323
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Direct REMOVE syntax > removes existing script using direct REMOVE syntax
324
+  Fixed! package.json: Script 'exists' should be removed
325
+
326
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Direct REMOVE syntax > handles mix of REMOVE and regular script values
327
+ package-with-multiple-scripts (/tmp/tmp-3834-bvUNZjRfErTR)
328
+
329
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Direct REMOVE syntax > handles mix of REMOVE and regular script values
330
+  Fixed! package.json: Script 'build' should be removed
331
+ Fixed! package.json: Expected standardized script entry for 'test'. Valid options: 'vitest'
332
+ Fixed! package.json: Expected standardized script entry for 'start'. Valid options: 'node index.js'
333
+ Fixed! package.json: Script 'lint' should be removed
334
+
335
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Direct REMOVE syntax > handles REMOVE when scripts block doesn't exist
336
+ package-without-scripts (/tmp/tmp-3834-w3qTQjPg8T25)
337
+
338
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Direct REMOVE syntax > handles REMOVE when scripts block doesn't exist
339
+  Fixed! package.json: No scripts block in package.json
340
+
341
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Advanced allowedValues scenarios > handles multiple options without fixValue (no fixer should be provided)
342
+ package-with-scripts (/tmp/tmp-3834-tZdfuoc1DE2R)
343
+
344
+ stderr | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Advanced allowedValues scenarios > handles multiple options without fixValue (no fixer should be provided)
345
+  Error! package.json: Expected standardized script entry for 'exists'. Valid options: 'option-a', 'option-b', 'option-c'
346
+
347
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Advanced allowedValues scenarios > handles mixed option types: string + undefined + REMOVE
348
+ package-with-scripts (/tmp/tmp-3834-lyGjxTCzw12l)
349
+
350
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Advanced allowedValues scenarios > handles mixed option types: string + undefined + REMOVE
351
+  Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: 'build-cmd', (empty), (empty)
352
+
353
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Advanced allowedValues scenarios > handles existing script with REMOVE in options array
354
+ package-with-scripts (/tmp/tmp-3834-13Z173qS1bzF)
355
+
356
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Advanced allowedValues scenarios > handles existing script with REMOVE in options array
357
+  Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: 'different-value', (empty)
358
+
359
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Advanced allowedValues scenarios > handles fixValue: false (prevents fixing)
360
+ package-with-scripts (/tmp/tmp-3834-1RfzW0bD0ain)
361
+
362
+ stderr | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Advanced allowedValues scenarios > handles fixValue: false (prevents fixing)
363
+  Error! package.json: Expected standardized script entry for 'exists'. Valid options: 'different-value'
364
+
365
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Advanced allowedValues scenarios > formats error messages correctly for complex allowedValues
366
+ package-with-scripts (/tmp/tmp-3834-mUpwpDQhXN7g)
367
+
368
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Advanced allowedValues scenarios > formats error messages correctly for complex allowedValues
369
+  Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: 'cmd-a', 'cmd-b', (empty), (empty)
370
+
371
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Advanced allowedValues scenarios > processes multiple scripts with different allowedValues configurations
372
+ complex-package (/tmp/tmp-3834-5iaeeGjxv9Fd)
373
+
374
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > Advanced allowedValues scenarios > processes multiple scripts with different allowedValues configurations
375
+  Fixed! package.json: Expected standardized script entry for 'script-a'. Valid options: 'correct-a1', 'correct-a2'
376
+ Fixed! package.json: Expected standardized script entry for 'script-b'. Valid options: 'correct-b', (empty)
377
+
378
+ ✓ src/__tests__/mustSatisfyPeerDependencies.spec.ts (52 tests) 199ms
379
+ ✓ src/__tests__/packageScript.spec.ts (52 tests) 241ms
380
+ ✓ src/__tests__/consistentVersions.spec.ts (14 tests) 61ms
381
+ ✓ src/__tests__/requireDependency.spec.ts (12 tests) 57ms
96
382
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > fixes missing entries
97
- package (/tmp/tmp-3769-Kx1hyBps5gy0)
383
+ package (/tmp/tmp-3939-ZleUPN3CSeBZ)
98
384
 
99
385
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > fixes missing entries
100
386
   Fixed! package.json: Expected standardized entry for 'license'
101
387
 
102
388
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > fixes missing nested entries
103
- package (/tmp/tmp-3769-UQzL2n7QXIdM)
389
+ package (/tmp/tmp-3939-U6dUvg0Tcgso)
104
390
 
105
- ✓ src/__tests__/bannedDependencies.spec.ts (5 tests) 37ms
106
391
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > fixes missing nested entries
107
392
   Fixed! package.json: Expected standardized entry for 'repository'
108
393
 
109
394
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > errors for keys that are missing
110
- package (/tmp/tmp-3769-gBt4Wp7LWAJA)
395
+ package (/tmp/tmp-3939-i0kmZsKSjvyI)
111
396
 
112
397
  stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > errors for keys that are missing
113
398
   Error! package.json: Expected entry for 'bugs' to exist
114
399
 
115
400
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > handles both entries and entriesExist
116
- package (/tmp/tmp-3769-OJrqRW8mOgR8)
401
+ package (/tmp/tmp-3939-e5G7V551r0lM)
117
402
  Fixed! package.json: Expected standardized entry for 'repository'
118
403
 
119
404
  stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > handles both entries and entriesExist
120
405
   Error! package.json: Expected entry for 'bugs' to exist
121
406
 
407
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > removes existing entries when REMOVE is specified
408
+ package (/tmp/tmp-3939-n3lsbs8ZE9rJ)
409
+
410
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > removes existing entries when REMOVE is specified
411
+  Fixed! package.json: Entry 'scripts' should be removed
412
+
413
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > handles mix of REMOVE and regular entries
414
+ package (/tmp/tmp-3939-McRdjjVJvX32)
415
+
416
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > handles mix of REMOVE and regular entries
417
+  Fixed! package.json: Entry 'scripts' should be removed
418
+ Fixed! package.json: Expected standardized entry for 'description'
419
+
420
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > handles REMOVE with entriesExist
421
+ package (/tmp/tmp-3939-eSVU59Gqu8VZ)
422
+
423
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > handles REMOVE with entriesExist
424
+  Fixed! package.json: Entry 'scripts' should be removed
425
+
122
426
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > fixes missing entries
123
- package (/tmp/tmp-3769-JhAClr7sLewt)
427
+ package (/tmp/tmp-3939-RhQYXtTF05Ql)
124
428
 
125
429
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > fixes missing entries
126
430
   Fixed! package.json: Expected standardized entry for 'license'
127
431
 
128
432
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > fixes missing nested entries
129
- package (/tmp/tmp-3769-tiF1xL0OU3Ix)
433
+ package (/tmp/tmp-3939-gZqo4pg0d0rn)
130
434
 
131
435
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > fixes missing nested entries
132
436
   Fixed! package.json: Expected standardized entry for 'repository'
133
437
 
134
438
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > errors for keys that are missing
135
- package (/tmp/tmp-3769-UwMv60giOsmU)
439
+ package (/tmp/tmp-3939-jV6hmbghsOC4)
136
440
 
137
441
  stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > errors for keys that are missing
138
442
   Error! package.json: Expected entry for 'bugs' to exist
139
443
 
140
444
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > handles both entries and entriesExist
141
- package (/tmp/tmp-3769-UMUy0NXuKhqQ)
445
+ package (/tmp/tmp-3939-fqim1DQml6Ij)
142
446
  Fixed! package.json: Expected standardized entry for 'repository'
143
447
 
144
448
  stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > handles both entries and entriesExist
145
449
   Error! package.json: Expected entry for 'bugs' to exist
146
450
 
147
- ✓ src/__tests__/packageEntry.spec.ts (10 tests) 42ms
148
- ✓ src/__tests__/nestedWorkspaces.spec.ts (6 tests) 64ms
149
- ✓ src/__tests__/requireDependency.spec.ts (2 tests) 32ms
150
- ✓ src/__tests__/consistentDependencies.spec.ts (3 tests) 39ms
451
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > removes existing entries when REMOVE is specified
452
+ package (/tmp/tmp-3939-kXNgV1Cxk3iF)
453
+
454
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > removes existing entries when REMOVE is specified
455
+  Fixed! package.json: Entry 'scripts' should be removed
456
+
457
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > handles mix of REMOVE and regular entries
458
+ package (/tmp/tmp-3939-67wnyF6cS44u)
459
+
460
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > handles mix of REMOVE and regular entries
461
+  Fixed! package.json: Entry 'scripts' should be removed
462
+ Fixed! package.json: Expected standardized entry for 'description'
463
+
464
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > handles REMOVE with entriesExist
465
+ package (/tmp/tmp-3939-cLKvyA3qBPSc)
466
+
467
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > handles REMOVE with entriesExist
468
+  Fixed! package.json: Entry 'scripts' should be removed
469
+
470
+ ✓ src/__tests__/packageEntry.spec.ts (22 tests) 70ms
471
+ ✓ src/__tests__/bannedDependencies.spec.ts (7 tests) 36ms
472
+ ✓ src/__tests__/nestedWorkspaces.spec.ts (8 tests) 80ms
473
+ ✓ src/__tests__/consistentDependencies.spec.ts (5 tests) 31ms
151
474
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order for expected keys
152
- package (/tmp/tmp-3913-TNihQWGn0hpa)
475
+ package (/tmp/tmp-4145-5wpEt5dpqblO)
153
476
 
154
477
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order for expected keys
155
478
   Fixed! package.json: Incorrect order of fields in package.json
156
479
 
157
480
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order for unexpected keys
158
- package-unknown-keys (/tmp/tmp-3913-FagPCvy93sMy)
481
+ package-unknown-keys (/tmp/tmp-4145-lGY5Yv9AY7lF)
159
482
 
160
483
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order for unexpected keys
161
484
   Fixed! package.json: Incorrect order of fields in package.json
162
485
 
163
486
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order using function
164
- package (/tmp/tmp-3913-RkpiJn6dYJDi)
487
+ package (/tmp/tmp-4145-M88Rpfo4AeR7)
165
488
 
166
489
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order using function
167
490
   Fixed! package.json: Incorrect order of fields in package.json
168
491
 
169
492
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order for expected keys
170
- package (/tmp/tmp-3913-arHUhBjav15Z)
493
+ package (/tmp/tmp-4145-4d32udNE0tlf)
171
494
 
172
495
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order for expected keys
173
496
   Fixed! package.json: Incorrect order of fields in package.json
174
497
 
175
498
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order for unexpected keys
176
- package-unknown-keys (/tmp/tmp-3913-i0Dm6K9wjOLa)
499
+ package-unknown-keys (/tmp/tmp-4145-CkWjpofjKRTW)
177
500
 
178
501
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order for unexpected keys
179
502
   Fixed! package.json: Incorrect order of fields in package.json
180
503
 
181
504
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order using function
182
- package (/tmp/tmp-3913-3uD2MrVkVYZi)
505
+ package (/tmp/tmp-4145-H8SsPuWkkv0K)
183
506
 
184
507
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order using function
185
508
   Fixed! package.json: Incorrect order of fields in package.json
186
509
 
187
- ✓ src/__tests__/packageOrder.spec.ts (8 tests) 48ms
188
- stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > works with async generator
189
- rootProject (/tmp/tmp-3993-SCUoKZNHspdt)
510
+ ✓ src/__tests__/packageOrder.spec.ts (12 tests) 71ms
511
+ stdout | src/__tests__/alphabeticalDependencies.spec.ts > alphabeticalDependencies ('SimpleHost') > fix: true > fixes unsorted dependencies
512
+ foo-lib (/tmp/tmp-4193-JqNa1yGCMyHo)
190
513
 
191
- stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > works with async generator
192
-  Fixed! foo.txt: Expect file contents to match
514
+ stdout | src/__tests__/alphabeticalDependencies.spec.ts > alphabeticalDependencies ('SimpleHost') > fix: true > fixes unsorted dependencies
515
+  Fixed! package.json: Incorrect order of dependencies in foo-lib's package.json
193
516
 
194
- stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > fixes missing file
195
- rootProject (/tmp/tmp-3993-sdEayBn1PfgZ)
517
+ stdout | src/__tests__/alphabeticalDependencies.spec.ts > alphabeticalDependencies ('CachingHost') > fix: true > fixes unsorted dependencies
518
+ foo-lib (/tmp/tmp-4193-6CNAYToZv9n9)
196
519
 
197
- stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > fixes missing file
198
-  Fixed! foo.txt: Expect file contents to match
520
+ stdout | src/__tests__/alphabeticalDependencies.spec.ts > alphabeticalDependencies ('CachingHost') > fix: true > fixes unsorted dependencies
521
+  Fixed! package.json: Incorrect order of dependencies in foo-lib's package.json
199
522
 
200
- stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > fixes missing nested file
201
- rootProject (/tmp/tmp-3993-szgm6fGFN1qK)
523
+ stdout | src/__tests__/standardTsconfig.spec.ts > standardTsconfig ('SimpleHost') > creates tsconfig.json when missing with template
524
+ rootProject (/tmp/tmp-4168-fpY62NJpoWd0)
202
525
 
203
- stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > fixes missing nested file
204
-  Fixed! nested/foo.txt: Expect file contents to match
526
+ stdout | src/__tests__/standardTsconfig.spec.ts > standardTsconfig ('SimpleHost') > creates tsconfig.json when missing with template
527
+  Fixed! tsconfig.json: Expect file contents to match
528
+
529
+ stdout | src/__tests__/standardTsconfig.spec.ts > standardTsconfig ('CachingHost') > creates tsconfig.json when missing with template
530
+ rootProject (/tmp/tmp-4168-16NqP9S24IAF)
205
531
 
532
+ stdout | src/__tests__/standardTsconfig.spec.ts > standardTsconfig ('CachingHost') > creates tsconfig.json when missing with template
533
+  Fixed! tsconfig.json: Expect file contents to match
534
+
535
+ ✓ src/__tests__/alphabeticalDependencies.spec.ts (8 tests) 30ms
536
+ ✓ src/__tests__/standardTsconfig.spec.ts (8 tests) 67ms
206
537
  stdout | src/__tests__/alphabeticalScripts.spec.ts > alphabeticalScripts ('SimpleHost') > fix: true > fixes unsorted scripts
207
- foo-lib (/tmp/tmp-4001-0B6vGMdAPusb)
538
+ foo-lib (/tmp/tmp-4301-eEgEOpfTJb8o)
208
539
 
209
540
  stdout | src/__tests__/alphabeticalScripts.spec.ts > alphabeticalScripts ('SimpleHost') > fix: true > fixes unsorted scripts
210
541
   Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
211
542
 
212
- stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > works with async generator
213
- rootProject (/tmp/tmp-3993-VMgE1qggYckt)
543
+ stdout | src/__tests__/alphabeticalScripts.spec.ts > alphabeticalScripts ('CachingHost') > fix: true > fixes unsorted scripts
544
+ foo-lib (/tmp/tmp-4301-C3N8vW1OhrLR)
214
545
 
215
- stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > works with async generator
216
-  Fixed! foo.txt: Expect file contents to match
546
+ stdout | src/__tests__/alphabeticalScripts.spec.ts > alphabeticalScripts ('CachingHost') > fix: true > fixes unsorted scripts
547
+  Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
217
548
 
218
- stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing file
219
- rootProject (/tmp/tmp-3993-RwDsrgbhky0L)
549
+ ✓ src/__tests__/alphabeticalScripts.spec.ts (8 tests) 35ms
550
+ stdout | src/__tests__/forceError.spec.ts > forceError ('SimpleHost') > always adds a default error
551
+ rootProject (/tmp/tmp-4329-rIvIjLdKHPUI)
220
552
 
221
- stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing file
222
-  Fixed! foo.txt: Expect file contents to match
553
+ stderr | src/__tests__/forceError.spec.ts > forceError ('SimpleHost') > always adds a default error
554
+  Error! package.json: Forced error (often used to debug package selection)
223
555
 
224
- stdout | src/__tests__/alphabeticalScripts.spec.ts > alphabeticalScripts ('CachingHost') > fix: true > fixes unsorted scripts
225
- foo-lib (/tmp/tmp-4001-j0xaYRtK738Y)
556
+ stdout | src/__tests__/forceError.spec.ts > forceError ('SimpleHost') > adds a custom error message when provided
557
+ rootProject (/tmp/tmp-4329-Lj0VIBPRW07m)
226
558
 
227
- stdout | src/__tests__/alphabeticalScripts.spec.ts > alphabeticalScripts ('CachingHost') > fix: true > fixes unsorted scripts
228
-  Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
559
+ stderr | src/__tests__/forceError.spec.ts > forceError ('SimpleHost') > adds a custom error message when provided
560
+  Error! package.json: Custom test message
229
561
 
230
- stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing nested file
231
- rootProject (/tmp/tmp-3993-GngxMlqd2vZ4)
562
+ stdout | src/__tests__/forceError.spec.ts > forceError ('CachingHost') > always adds a default error
563
+ rootProject (/tmp/tmp-4329-IV3dJV34LRPP)
232
564
 
233
- stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing nested file
234
-  Fixed! nested/foo.txt: Expect file contents to match
565
+ stderr | src/__tests__/forceError.spec.ts > forceError ('CachingHost') > always adds a default error
566
+  Error! package.json: Forced error (often used to debug package selection)
567
+
568
+ stdout | src/__tests__/forceError.spec.ts > forceError ('CachingHost') > adds a custom error message when provided
569
+ rootProject (/tmp/tmp-4329-JwGLSnWR3FiI)
570
+
571
+ stderr | src/__tests__/forceError.spec.ts > forceError ('CachingHost') > adds a custom error message when provided
572
+  Error! package.json: Custom test message
573
+
574
+ ✓ src/__tests__/forceError.spec.ts (8 tests) 32ms
575
+ stdout | src/__tests__/oncePerPackage.spec.ts > oncePerPackage ('SimpleHost') > prevents second visit to the same package with same key
576
+ rootProject (/tmp/tmp-4336-LfUa5yg0FHoL)
577
+
578
+ stderr | src/__tests__/oncePerPackage.spec.ts > oncePerPackage ('SimpleHost') > prevents second visit to the same package with same key
579
+  Error! package.json: This package has already been visited for this key: test-key-0.35451641891730423
580
+
581
+ stdout | src/__tests__/oncePerPackage.spec.ts > oncePerPackage ('CachingHost') > prevents second visit to the same package with same key
582
+ rootProject (/tmp/tmp-4336-mRVdE0B0UmTD)
583
+
584
+ stderr | src/__tests__/oncePerPackage.spec.ts > oncePerPackage ('CachingHost') > prevents second visit to the same package with same key
585
+  Error! package.json: This package has already been visited for this key: test-key-0.8352045172514981
235
586
 
236
- ✓ src/__tests__/alphabeticalScripts.spec.ts (4 tests) 28ms
237
- ✓ src/__tests__/fileContents.spec.ts (6 tests) 32ms
587
+ ✓ src/__tests__/oncePerPackage.spec.ts (8 tests) 22ms
238
588
 
239
-  Test Files  11 passed (11)
240
-  Tests  118 passed (118)
241
-  Start at  21:00:03
242
-  Duration  4.68s (transform 1.24s, setup 0ms, collect 5.49s, tests 572ms, environment 3ms, prepare 1.93s)
589
+  Test Files  15 passed (15)
590
+  Tests  258 passed (258)
591
+  Start at  18:00:52
592
+  Duration  6.05s (transform 1.39s, setup 0ms, collect 8.52s, tests 1.17s, environment 8ms, prepare 2.74s)
243
593
 
244
594
   % Coverage report from v8
245
595
  -------------------|---------|----------|---------|---------|-------------------
246
596
  File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
247
597
  -------------------|---------|----------|---------|---------|-------------------
248
- All files | 94.62 | 87.95 | 93.22 | 94.62 |
249
- src | 94.84 | 88.74 | 91.66 | 94.84 |
598
+ All files | 92.98 | 90.63 | 97.4 | 92.98 |
599
+ src | 92.91 | 91.15 | 96.96 | 92.91 |
600
+ REMOVE.ts | 100 | 100 | 100 | 100 |
250
601
  ...pendencies.ts | 100 | 100 | 100 | 100 |
251
- ...calScripts.ts | 100 | 100 | 50 | 100 |
252
- ...pendencies.ts | 97.03 | 76.66 | 83.33 | 97.03 | 64,66,118-119
253
- ...pendencies.ts | 97.4 | 94.11 | 100 | 97.4 | 97-98
254
- ...ntVersions.ts | 94.8 | 90.9 | 100 | 94.8 | 60-63,122-125
255
- fileContents.ts | 83.72 | 38.46 | 100 | 83.72 | ...,87-92,105-107
602
+ ...calScripts.ts | 100 | 100 | 100 | 100 |
603
+ ...pendencies.ts | 96.77 | 76.66 | 83.33 | 96.77 | 53,55,107-108
604
+ ...pendencies.ts | 97.43 | 94.11 | 100 | 97.43 | 99-100
605
+ ...ntVersions.ts | 94.62 | 90.9 | 100 | 94.62 | ...,96-99,171-174
606
+ fileContents.ts | 93.33 | 90.32 | 100 | 93.33 | 110-115,151-152
256
607
  forceError.ts | 100 | 100 | 100 | 100 |
257
- index.ts | 0 | 0 | 0 | 0 | 1-24
258
- ...pendencies.ts | 94.25 | 90.44 | 100 | 94.25 | ...96-597,661-662
608
+ index.ts | 0 | 0 | 0 | 0 | 1-32
609
+ ...pendencies.ts | 92.09 | 90.44 | 100 | 92.09 | ...34-435,499-500
259
610
  ...Workspaces.ts | 97.82 | 91.66 | 100 | 97.82 | 30
260
611
  ...PerPackage.ts | 100 | 100 | 100 | 100 |
261
612
  packageEntry.ts | 100 | 100 | 100 | 100 |
262
- packageOrder.ts | 99 | 95.45 | 100 | 99 | 61
613
+ packageOrder.ts | 99.09 | 95.45 | 100 | 99.09 | 71
263
614
  packageScript.ts | 100 | 100 | 100 | 100 |
264
- ...Dependency.ts | 90.27 | 100 | 66.66 | 90.27 | 45-51
265
- ...rdTsconfig.ts | 100 | 100 | 100 | 100 |
266
- src/util | 92.25 | 80 | 100 | 92.25 |
267
- checkAlpha.ts | 95.55 | 90 | 100 | 95.55 | 21-22
615
+ ...Dependency.ts | 100 | 100 | 100 | 100 |
616
+ ...rdTsconfig.ts | 69.46 | 66.66 | 100 | 69.46 | ...31-144,147-152
617
+ src/util | 93.71 | 83.87 | 100 | 93.71 |
618
+ checkAlpha.ts | 100 | 100 | 100 | 100 |
268
619
  ...uleFactory.ts | 100 | 100 | 100 | 100 |
269
620
  makeDirectory.ts | 100 | 100 | 100 | 100 |
270
621
  ...aphService.ts | 87.01 | 61.53 | 100 | 87.01 | ...18-119,123-124
622
+ zodSchemas.ts | 100 | 100 | 100 | 100 |
271
623
  -------------------|---------|----------|---------|---------|-------------------
272
- [?25h