@vitest-agent/sdk 7.1.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/errors/ProjectIdentityError.js +25 -1
- package/index.d.ts +561 -434
- package/index.js +4 -5
- package/package.json +1 -1
- package/schemas/5.0/run.json +18 -222
- package/schemas/AgentReport.js +12 -12
- package/schemas/Common.js +22 -1
- package/schemas/ConsoleLeaks.js +6 -5
- package/schemas/Coverage.js +6 -5
- package/schemas/RenderState.js +8 -1
- package/schemas/RunEvent.js +8 -1
- package/schemas/StrayOutput.js +5 -4
- package/schemas/Thresholds.js +5 -4
- package/utils/console-leaks.js +27 -1
- package/version.js +1 -1
- package/utils/hyperlink.js +0 -10
package/index.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ import { Option, PubSub, Schema } from "effect";
|
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
6
|
export declare const CoverageTotals: Schema.Struct<{
|
|
7
|
-
readonly statements: Schema.
|
|
8
|
-
readonly branches: Schema.
|
|
9
|
-
readonly functions: Schema.
|
|
10
|
-
readonly lines: Schema.
|
|
7
|
+
readonly statements: Schema.Finite;
|
|
8
|
+
readonly branches: Schema.Finite;
|
|
9
|
+
readonly functions: Schema.Finite;
|
|
10
|
+
readonly lines: Schema.Finite;
|
|
11
11
|
}>;
|
|
12
12
|
/** @public */
|
|
13
13
|
export type CoverageTotals = typeof CoverageTotals.Type;
|
|
@@ -18,10 +18,10 @@ export type CoverageTotals = typeof CoverageTotals.Type;
|
|
|
18
18
|
export declare const FileCoverageReport: Schema.Struct<{
|
|
19
19
|
readonly file: Schema.String;
|
|
20
20
|
readonly summary: Schema.Struct<{
|
|
21
|
-
readonly statements: Schema.
|
|
22
|
-
readonly branches: Schema.
|
|
23
|
-
readonly functions: Schema.
|
|
24
|
-
readonly lines: Schema.
|
|
21
|
+
readonly statements: Schema.Finite;
|
|
22
|
+
readonly branches: Schema.Finite;
|
|
23
|
+
readonly functions: Schema.Finite;
|
|
24
|
+
readonly lines: Schema.Finite;
|
|
25
25
|
}>;
|
|
26
26
|
readonly uncoveredLines: Schema.String;
|
|
27
27
|
}>;
|
|
@@ -41,17 +41,17 @@ export declare const GlobShortfall: Schema.Struct<{
|
|
|
41
41
|
readonly pattern: Schema.String;
|
|
42
42
|
/** Aggregate coverage percentages over the files the glob matches. */
|
|
43
43
|
readonly summary: Schema.Struct<{
|
|
44
|
-
readonly statements: Schema.
|
|
45
|
-
readonly branches: Schema.
|
|
46
|
-
readonly functions: Schema.
|
|
47
|
-
readonly lines: Schema.
|
|
44
|
+
readonly statements: Schema.Finite;
|
|
45
|
+
readonly branches: Schema.Finite;
|
|
46
|
+
readonly functions: Schema.Finite;
|
|
47
|
+
readonly lines: Schema.Finite;
|
|
48
48
|
}>;
|
|
49
49
|
/** The glob's own metric numbers that were set (`perFile` excluded). */
|
|
50
50
|
readonly thresholds: Schema.Struct<{
|
|
51
|
-
readonly lines: Schema.optional<Schema.
|
|
52
|
-
readonly functions: Schema.optional<Schema.
|
|
53
|
-
readonly branches: Schema.optional<Schema.
|
|
54
|
-
readonly statements: Schema.optional<Schema.
|
|
51
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
52
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
53
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
54
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
55
55
|
}>;
|
|
56
56
|
}>;
|
|
57
57
|
/** @public */
|
|
@@ -62,81 +62,81 @@ export type GlobShortfall = typeof GlobShortfall.Type;
|
|
|
62
62
|
*/
|
|
63
63
|
export declare const CoverageReport: Schema.Struct<{
|
|
64
64
|
readonly totals: Schema.Struct<{
|
|
65
|
-
readonly statements: Schema.
|
|
66
|
-
readonly branches: Schema.
|
|
67
|
-
readonly functions: Schema.
|
|
68
|
-
readonly lines: Schema.
|
|
65
|
+
readonly statements: Schema.Finite;
|
|
66
|
+
readonly branches: Schema.Finite;
|
|
67
|
+
readonly functions: Schema.Finite;
|
|
68
|
+
readonly lines: Schema.Finite;
|
|
69
69
|
}>;
|
|
70
70
|
readonly thresholds: Schema.Struct<{
|
|
71
71
|
readonly global: Schema.Struct<{
|
|
72
|
-
readonly lines: Schema.optional<Schema.
|
|
73
|
-
readonly functions: Schema.optional<Schema.
|
|
74
|
-
readonly branches: Schema.optional<Schema.
|
|
75
|
-
readonly statements: Schema.optional<Schema.
|
|
72
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
73
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
74
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
75
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
76
76
|
}>;
|
|
77
77
|
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
78
|
-
readonly lines: Schema.optional<Schema.
|
|
79
|
-
readonly functions: Schema.optional<Schema.
|
|
80
|
-
readonly branches: Schema.optional<Schema.
|
|
81
|
-
readonly statements: Schema.optional<Schema.
|
|
78
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
79
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
80
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
81
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
82
82
|
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
83
|
-
readonly lines: Schema.optional<Schema.
|
|
84
|
-
readonly functions: Schema.optional<Schema.
|
|
85
|
-
readonly branches: Schema.optional<Schema.
|
|
86
|
-
readonly statements: Schema.optional<Schema.
|
|
83
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
84
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
85
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
86
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
87
87
|
}>]>>;
|
|
88
88
|
}>]>>, never>;
|
|
89
89
|
}>;
|
|
90
90
|
readonly targets: Schema.optional<Schema.Struct<{
|
|
91
91
|
readonly global: Schema.Struct<{
|
|
92
|
-
readonly lines: Schema.optional<Schema.
|
|
93
|
-
readonly functions: Schema.optional<Schema.
|
|
94
|
-
readonly branches: Schema.optional<Schema.
|
|
95
|
-
readonly statements: Schema.optional<Schema.
|
|
92
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
93
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
94
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
95
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
96
96
|
}>;
|
|
97
97
|
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
98
|
-
readonly lines: Schema.optional<Schema.
|
|
99
|
-
readonly functions: Schema.optional<Schema.
|
|
100
|
-
readonly branches: Schema.optional<Schema.
|
|
101
|
-
readonly statements: Schema.optional<Schema.
|
|
98
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
99
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
100
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
101
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
102
102
|
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
103
|
-
readonly lines: Schema.optional<Schema.
|
|
104
|
-
readonly functions: Schema.optional<Schema.
|
|
105
|
-
readonly branches: Schema.optional<Schema.
|
|
106
|
-
readonly statements: Schema.optional<Schema.
|
|
103
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
104
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
105
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
106
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
107
107
|
}>]>>;
|
|
108
108
|
}>]>>, never>;
|
|
109
109
|
}>>;
|
|
110
110
|
readonly baselines: Schema.optional<Schema.Struct<{
|
|
111
111
|
readonly global: Schema.Struct<{
|
|
112
|
-
readonly lines: Schema.optional<Schema.
|
|
113
|
-
readonly functions: Schema.optional<Schema.
|
|
114
|
-
readonly branches: Schema.optional<Schema.
|
|
115
|
-
readonly statements: Schema.optional<Schema.
|
|
112
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
113
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
114
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
115
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
116
116
|
}>;
|
|
117
117
|
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
118
|
-
readonly lines: Schema.optional<Schema.
|
|
119
|
-
readonly functions: Schema.optional<Schema.
|
|
120
|
-
readonly branches: Schema.optional<Schema.
|
|
121
|
-
readonly statements: Schema.optional<Schema.
|
|
118
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
119
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
120
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
121
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
122
122
|
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
123
|
-
readonly lines: Schema.optional<Schema.
|
|
124
|
-
readonly functions: Schema.optional<Schema.
|
|
125
|
-
readonly branches: Schema.optional<Schema.
|
|
126
|
-
readonly statements: Schema.optional<Schema.
|
|
123
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
124
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
125
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
126
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
127
127
|
}>]>>;
|
|
128
128
|
}>]>>, never>;
|
|
129
129
|
}>>;
|
|
130
130
|
readonly scoped: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
131
131
|
readonly scopedFiles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
132
|
-
readonly totalFiles: Schema.optional<Schema.
|
|
132
|
+
readonly totalFiles: Schema.optional<Schema.Finite>;
|
|
133
133
|
readonly lowCoverage: Schema.$Array<Schema.Struct<{
|
|
134
134
|
readonly file: Schema.String;
|
|
135
135
|
readonly summary: Schema.Struct<{
|
|
136
|
-
readonly statements: Schema.
|
|
137
|
-
readonly branches: Schema.
|
|
138
|
-
readonly functions: Schema.
|
|
139
|
-
readonly lines: Schema.
|
|
136
|
+
readonly statements: Schema.Finite;
|
|
137
|
+
readonly branches: Schema.Finite;
|
|
138
|
+
readonly functions: Schema.Finite;
|
|
139
|
+
readonly lines: Schema.Finite;
|
|
140
140
|
}>;
|
|
141
141
|
readonly uncoveredLines: Schema.String;
|
|
142
142
|
}>>;
|
|
@@ -144,10 +144,10 @@ export declare const CoverageReport: Schema.Struct<{
|
|
|
144
144
|
readonly belowTarget: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
145
145
|
readonly file: Schema.String;
|
|
146
146
|
readonly summary: Schema.Struct<{
|
|
147
|
-
readonly statements: Schema.
|
|
148
|
-
readonly branches: Schema.
|
|
149
|
-
readonly functions: Schema.
|
|
150
|
-
readonly lines: Schema.
|
|
147
|
+
readonly statements: Schema.Finite;
|
|
148
|
+
readonly branches: Schema.Finite;
|
|
149
|
+
readonly functions: Schema.Finite;
|
|
150
|
+
readonly lines: Schema.Finite;
|
|
151
151
|
}>;
|
|
152
152
|
readonly uncoveredLines: Schema.String;
|
|
153
153
|
}>>>;
|
|
@@ -157,17 +157,17 @@ export declare const CoverageReport: Schema.Struct<{
|
|
|
157
157
|
readonly pattern: Schema.String;
|
|
158
158
|
/** Aggregate coverage percentages over the files the glob matches. */
|
|
159
159
|
readonly summary: Schema.Struct<{
|
|
160
|
-
readonly statements: Schema.
|
|
161
|
-
readonly branches: Schema.
|
|
162
|
-
readonly functions: Schema.
|
|
163
|
-
readonly lines: Schema.
|
|
160
|
+
readonly statements: Schema.Finite;
|
|
161
|
+
readonly branches: Schema.Finite;
|
|
162
|
+
readonly functions: Schema.Finite;
|
|
163
|
+
readonly lines: Schema.Finite;
|
|
164
164
|
}>;
|
|
165
165
|
/** The glob's own metric numbers that were set (`perFile` excluded). */
|
|
166
166
|
readonly thresholds: Schema.Struct<{
|
|
167
|
-
readonly lines: Schema.optional<Schema.
|
|
168
|
-
readonly functions: Schema.optional<Schema.
|
|
169
|
-
readonly branches: Schema.optional<Schema.
|
|
170
|
-
readonly statements: Schema.optional<Schema.
|
|
167
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
168
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
169
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
170
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
171
171
|
}>;
|
|
172
172
|
}>>>;
|
|
173
173
|
}>;
|
|
@@ -264,24 +264,24 @@ export type FailureRecord = typeof FailureRecord.Type;
|
|
|
264
264
|
*/
|
|
265
265
|
export declare const CoverageRenderState: Schema.Struct<{
|
|
266
266
|
readonly metrics: Schema.Struct<{
|
|
267
|
-
readonly statements: Schema.
|
|
268
|
-
readonly branches: Schema.
|
|
269
|
-
readonly functions: Schema.
|
|
270
|
-
readonly lines: Schema.
|
|
267
|
+
readonly statements: Schema.Finite;
|
|
268
|
+
readonly branches: Schema.Finite;
|
|
269
|
+
readonly functions: Schema.Finite;
|
|
270
|
+
readonly lines: Schema.Finite;
|
|
271
271
|
}>;
|
|
272
272
|
readonly thresholds: Schema.Struct<{
|
|
273
|
-
readonly lines: Schema.optional<Schema.
|
|
274
|
-
readonly functions: Schema.optional<Schema.
|
|
275
|
-
readonly branches: Schema.optional<Schema.
|
|
276
|
-
readonly statements: Schema.optional<Schema.
|
|
273
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
274
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
275
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
276
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
277
277
|
}>;
|
|
278
278
|
readonly gaps: Schema.$Array<Schema.Struct<{
|
|
279
279
|
readonly file: Schema.String;
|
|
280
280
|
readonly missing: Schema.Struct<{
|
|
281
|
-
readonly statements: Schema.
|
|
282
|
-
readonly branches: Schema.
|
|
283
|
-
readonly functions: Schema.
|
|
284
|
-
readonly lines: Schema.
|
|
281
|
+
readonly statements: Schema.Finite;
|
|
282
|
+
readonly branches: Schema.Finite;
|
|
283
|
+
readonly functions: Schema.Finite;
|
|
284
|
+
readonly lines: Schema.Finite;
|
|
285
285
|
}>;
|
|
286
286
|
readonly uncoveredLines: Schema.optional<Schema.String>;
|
|
287
287
|
}>>;
|
|
@@ -296,16 +296,16 @@ export declare const CoverageRenderState: Schema.Struct<{
|
|
|
296
296
|
readonly globShortfalls: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
297
297
|
readonly pattern: Schema.String;
|
|
298
298
|
readonly summary: Schema.Struct<{
|
|
299
|
-
readonly statements: Schema.
|
|
300
|
-
readonly branches: Schema.
|
|
301
|
-
readonly functions: Schema.
|
|
302
|
-
readonly lines: Schema.
|
|
299
|
+
readonly statements: Schema.Finite;
|
|
300
|
+
readonly branches: Schema.Finite;
|
|
301
|
+
readonly functions: Schema.Finite;
|
|
302
|
+
readonly lines: Schema.Finite;
|
|
303
303
|
}>;
|
|
304
304
|
readonly thresholds: Schema.Struct<{
|
|
305
|
-
readonly lines: Schema.optional<Schema.
|
|
306
|
-
readonly functions: Schema.optional<Schema.
|
|
307
|
-
readonly branches: Schema.optional<Schema.
|
|
308
|
-
readonly statements: Schema.optional<Schema.
|
|
305
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
306
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
307
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
308
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
309
309
|
}>;
|
|
310
310
|
}>>>;
|
|
311
311
|
}>;
|
|
@@ -400,24 +400,24 @@ export declare const RenderState: Schema.Struct<{
|
|
|
400
400
|
}>;
|
|
401
401
|
readonly coverage: Schema.NullOr<Schema.Struct<{
|
|
402
402
|
readonly metrics: Schema.Struct<{
|
|
403
|
-
readonly statements: Schema.
|
|
404
|
-
readonly branches: Schema.
|
|
405
|
-
readonly functions: Schema.
|
|
406
|
-
readonly lines: Schema.
|
|
403
|
+
readonly statements: Schema.Finite;
|
|
404
|
+
readonly branches: Schema.Finite;
|
|
405
|
+
readonly functions: Schema.Finite;
|
|
406
|
+
readonly lines: Schema.Finite;
|
|
407
407
|
}>;
|
|
408
408
|
readonly thresholds: Schema.Struct<{
|
|
409
|
-
readonly lines: Schema.optional<Schema.
|
|
410
|
-
readonly functions: Schema.optional<Schema.
|
|
411
|
-
readonly branches: Schema.optional<Schema.
|
|
412
|
-
readonly statements: Schema.optional<Schema.
|
|
409
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
410
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
411
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
412
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
413
413
|
}>;
|
|
414
414
|
readonly gaps: Schema.$Array<Schema.Struct<{
|
|
415
415
|
readonly file: Schema.String;
|
|
416
416
|
readonly missing: Schema.Struct<{
|
|
417
|
-
readonly statements: Schema.
|
|
418
|
-
readonly branches: Schema.
|
|
419
|
-
readonly functions: Schema.
|
|
420
|
-
readonly lines: Schema.
|
|
417
|
+
readonly statements: Schema.Finite;
|
|
418
|
+
readonly branches: Schema.Finite;
|
|
419
|
+
readonly functions: Schema.Finite;
|
|
420
|
+
readonly lines: Schema.Finite;
|
|
421
421
|
}>;
|
|
422
422
|
readonly uncoveredLines: Schema.optional<Schema.String>;
|
|
423
423
|
}>>;
|
|
@@ -432,16 +432,16 @@ export declare const RenderState: Schema.Struct<{
|
|
|
432
432
|
readonly globShortfalls: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
433
433
|
readonly pattern: Schema.String;
|
|
434
434
|
readonly summary: Schema.Struct<{
|
|
435
|
-
readonly statements: Schema.
|
|
436
|
-
readonly branches: Schema.
|
|
437
|
-
readonly functions: Schema.
|
|
438
|
-
readonly lines: Schema.
|
|
435
|
+
readonly statements: Schema.Finite;
|
|
436
|
+
readonly branches: Schema.Finite;
|
|
437
|
+
readonly functions: Schema.Finite;
|
|
438
|
+
readonly lines: Schema.Finite;
|
|
439
439
|
}>;
|
|
440
440
|
readonly thresholds: Schema.Struct<{
|
|
441
|
-
readonly lines: Schema.optional<Schema.
|
|
442
|
-
readonly functions: Schema.optional<Schema.
|
|
443
|
-
readonly branches: Schema.optional<Schema.
|
|
444
|
-
readonly statements: Schema.optional<Schema.
|
|
441
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
442
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
443
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
444
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
445
445
|
}>;
|
|
446
446
|
}>>>;
|
|
447
447
|
}>>;
|
|
@@ -498,15 +498,35 @@ export declare const RenderState: Schema.Struct<{
|
|
|
498
498
|
* wrote nothing stray.
|
|
499
499
|
*/
|
|
500
500
|
readonly strayOutput: Schema.optional<Schema.Struct<{
|
|
501
|
-
readonly total: Schema.
|
|
502
|
-
readonly stdout: Schema.
|
|
503
|
-
readonly stderr: Schema.
|
|
504
|
-
readonly bytes: Schema.
|
|
501
|
+
readonly total: Schema.Finite;
|
|
502
|
+
readonly stdout: Schema.Finite;
|
|
503
|
+
readonly stderr: Schema.Finite;
|
|
504
|
+
readonly bytes: Schema.Finite;
|
|
505
505
|
readonly samples: Schema.$Array<Schema.Struct<{
|
|
506
506
|
readonly stream: Schema.Literals<readonly ["stdout", "stderr"]>;
|
|
507
507
|
readonly text: Schema.String;
|
|
508
508
|
}>>;
|
|
509
509
|
}>>;
|
|
510
|
+
/**
|
|
511
|
+
* `console.*` output Vitest captured from tests that did not fail, folded
|
|
512
|
+
* from `RunFinished.consoleLeaks`. Absent when the run logged nothing
|
|
513
|
+
* (issue #544).
|
|
514
|
+
*/
|
|
515
|
+
readonly consoleLeaks: Schema.optional<Schema.Struct<{
|
|
516
|
+
readonly total: Schema.Finite;
|
|
517
|
+
readonly byFile: Schema.$Array<Schema.Struct<{
|
|
518
|
+
readonly file: Schema.String;
|
|
519
|
+
readonly stdout: Schema.Finite;
|
|
520
|
+
readonly stderr: Schema.Finite;
|
|
521
|
+
readonly tests: Schema.optional<Schema.$Array<Schema.String>>;
|
|
522
|
+
readonly sample: Schema.optional<Schema.String>;
|
|
523
|
+
}>>;
|
|
524
|
+
readonly truncated: Schema.optional<Schema.Boolean>;
|
|
525
|
+
readonly fromFailingTests: Schema.optional<Schema.Struct<{
|
|
526
|
+
readonly total: Schema.Finite;
|
|
527
|
+
readonly files: Schema.Finite;
|
|
528
|
+
}>>;
|
|
529
|
+
}>>;
|
|
510
530
|
}>;
|
|
511
531
|
/** @public */
|
|
512
532
|
export type RenderState = typeof RenderState.Type;
|
|
@@ -616,27 +636,41 @@ export interface DispatchInputs {
|
|
|
616
636
|
readonly runCommand: string | null;
|
|
617
637
|
}
|
|
618
638
|
/**
|
|
619
|
-
*
|
|
620
|
-
* `ReporterKit`. These are concerns the cell needs to format its
|
|
621
|
-
* output but that do not belong on the state-derived
|
|
622
|
-
* {@link DispatchInputs} struct.
|
|
639
|
+
* Where a file link points: a path, with an optional line and column.
|
|
623
640
|
*
|
|
624
|
-
* The
|
|
641
|
+
* The file half of `@effected/cli`'s `LinkTarget`, spelled structurally so
|
|
642
|
+
* this platform-free contract names no kit type. A relative path resolves
|
|
643
|
+
* against the working directory the kit's `CliLinks` layer was built with.
|
|
644
|
+
* @public
|
|
645
|
+
*/
|
|
646
|
+
export interface FileLinkTarget {
|
|
647
|
+
readonly file: string;
|
|
648
|
+
readonly line?: number;
|
|
649
|
+
readonly col?: number;
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* Render-time options threaded into each cell. These are concerns the
|
|
653
|
+
* cell needs to format its output but that do not belong on the
|
|
654
|
+
* state-derived {@link DispatchInputs} struct.
|
|
655
|
+
*
|
|
656
|
+
* The caller builds this once per render and passes it into
|
|
625
657
|
* `dispatch(inputs, opts)`. Cells destructure only what they consume.
|
|
626
658
|
* @public
|
|
627
659
|
*/
|
|
628
660
|
export interface CellOptions {
|
|
629
661
|
/**
|
|
630
|
-
*
|
|
631
|
-
*
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
*
|
|
636
|
-
*
|
|
637
|
-
*
|
|
662
|
+
* Writes a file path as a link for the audience and terminal the output
|
|
663
|
+
* is for: the label wrapped in an OSC 8 hyperlink when the reader can
|
|
664
|
+
* follow it, the label unchanged otherwise. The kit decides both halves
|
|
665
|
+
* (`@effected/cli`'s `CliLinks.linker`, `Render.context("stdout").link`):
|
|
666
|
+
* `vscode://file/<path>:<line>:<col>` under VS Code, `file://` otherwise,
|
|
667
|
+
* never for an agent audience, and nothing on a terminal that cannot
|
|
668
|
+
* render hyperlinks (a pipe, tmux, GNU screen, `NO_COLOR`).
|
|
669
|
+
*
|
|
670
|
+
* Omitted, every path is its label alone, which is what an agent reads;
|
|
671
|
+
* a cell therefore never writes an escape sequence of its own.
|
|
638
672
|
*/
|
|
639
|
-
readonly
|
|
673
|
+
readonly link?: (target: FileLinkTarget, label: string) => string;
|
|
640
674
|
}
|
|
641
675
|
/**
|
|
642
676
|
* One unit of rendered reporter output, tagged by where it goes.
|
|
@@ -666,11 +700,11 @@ export type RenderedOutput = {
|
|
|
666
700
|
* @public
|
|
667
701
|
*/
|
|
668
702
|
export declare const ReportSummary: Schema.Struct<{
|
|
669
|
-
readonly total: Schema.
|
|
670
|
-
readonly passed: Schema.
|
|
671
|
-
readonly failed: Schema.
|
|
672
|
-
readonly skipped: Schema.
|
|
673
|
-
readonly duration: Schema.
|
|
703
|
+
readonly total: Schema.Finite;
|
|
704
|
+
readonly passed: Schema.Finite;
|
|
705
|
+
readonly failed: Schema.Finite;
|
|
706
|
+
readonly skipped: Schema.Finite;
|
|
707
|
+
readonly duration: Schema.Finite;
|
|
674
708
|
/**
|
|
675
709
|
* Count of every collected module, passing modules included.
|
|
676
710
|
* `AgentReport.failed` only carries failing modules, so a green run
|
|
@@ -678,7 +712,7 @@ export declare const ReportSummary: Schema.Struct<{
|
|
|
678
712
|
* this a fully-passing replay reads as "0 modules all-passed"
|
|
679
713
|
* (issue #204). Optional to keep existing fixtures/reports valid.
|
|
680
714
|
*/
|
|
681
|
-
readonly modules: Schema.optional<Schema.
|
|
715
|
+
readonly modules: Schema.optional<Schema.Finite>;
|
|
682
716
|
}>;
|
|
683
717
|
/** @public */
|
|
684
718
|
export type ReportSummary = typeof ReportSummary.Type;
|
|
@@ -690,7 +724,7 @@ export declare const TestReport: Schema.Struct<{
|
|
|
690
724
|
readonly name: Schema.String;
|
|
691
725
|
readonly fullName: Schema.String;
|
|
692
726
|
readonly state: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
|
|
693
|
-
readonly duration: Schema.optional<Schema.
|
|
727
|
+
readonly duration: Schema.optional<Schema.Finite>;
|
|
694
728
|
readonly flaky: Schema.optional<Schema.Boolean>;
|
|
695
729
|
readonly slow: Schema.optional<Schema.Boolean>;
|
|
696
730
|
readonly errors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -711,7 +745,7 @@ export type TestReport = typeof TestReport.Type;
|
|
|
711
745
|
export declare const ModuleReport: Schema.Struct<{
|
|
712
746
|
readonly file: Schema.String;
|
|
713
747
|
readonly state: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
|
|
714
|
-
readonly duration: Schema.optional<Schema.
|
|
748
|
+
readonly duration: Schema.optional<Schema.Finite>;
|
|
715
749
|
readonly errors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
716
750
|
readonly message: Schema.String;
|
|
717
751
|
readonly stack: Schema.optional<Schema.String>;
|
|
@@ -723,7 +757,7 @@ export declare const ModuleReport: Schema.Struct<{
|
|
|
723
757
|
readonly name: Schema.String;
|
|
724
758
|
readonly fullName: Schema.String;
|
|
725
759
|
readonly state: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
|
|
726
|
-
readonly duration: Schema.optional<Schema.
|
|
760
|
+
readonly duration: Schema.optional<Schema.Finite>;
|
|
727
761
|
readonly flaky: Schema.optional<Schema.Boolean>;
|
|
728
762
|
readonly slow: Schema.optional<Schema.Boolean>;
|
|
729
763
|
readonly errors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -743,9 +777,9 @@ export type ModuleReport = typeof ModuleReport.Type;
|
|
|
743
777
|
* @public
|
|
744
778
|
*/
|
|
745
779
|
export declare const TagCountEntry: Schema.Struct<{
|
|
746
|
-
readonly passed: Schema.optional<Schema.
|
|
747
|
-
readonly failed: Schema.optional<Schema.
|
|
748
|
-
readonly skipped: Schema.optional<Schema.
|
|
780
|
+
readonly passed: Schema.optional<Schema.Finite>;
|
|
781
|
+
readonly failed: Schema.optional<Schema.Finite>;
|
|
782
|
+
readonly skipped: Schema.optional<Schema.Finite>;
|
|
749
783
|
}>;
|
|
750
784
|
/** @public */
|
|
751
785
|
export type TagCountEntry = typeof TagCountEntry.Type;
|
|
@@ -758,11 +792,11 @@ export declare const AgentReport: Schema.Struct<{
|
|
|
758
792
|
readonly project: Schema.optional<Schema.String>;
|
|
759
793
|
readonly reason: Schema.Literals<readonly ["passed", "failed", "interrupted"]>;
|
|
760
794
|
readonly summary: Schema.Struct<{
|
|
761
|
-
readonly total: Schema.
|
|
762
|
-
readonly passed: Schema.
|
|
763
|
-
readonly failed: Schema.
|
|
764
|
-
readonly skipped: Schema.
|
|
765
|
-
readonly duration: Schema.
|
|
795
|
+
readonly total: Schema.Finite;
|
|
796
|
+
readonly passed: Schema.Finite;
|
|
797
|
+
readonly failed: Schema.Finite;
|
|
798
|
+
readonly skipped: Schema.Finite;
|
|
799
|
+
readonly duration: Schema.Finite;
|
|
766
800
|
/**
|
|
767
801
|
* Count of every collected module, passing modules included.
|
|
768
802
|
* `AgentReport.failed` only carries failing modules, so a green run
|
|
@@ -770,12 +804,12 @@ export declare const AgentReport: Schema.Struct<{
|
|
|
770
804
|
* this a fully-passing replay reads as "0 modules all-passed"
|
|
771
805
|
* (issue #204). Optional to keep existing fixtures/reports valid.
|
|
772
806
|
*/
|
|
773
|
-
readonly modules: Schema.optional<Schema.
|
|
807
|
+
readonly modules: Schema.optional<Schema.Finite>;
|
|
774
808
|
}>;
|
|
775
809
|
readonly failed: Schema.$Array<Schema.Struct<{
|
|
776
810
|
readonly file: Schema.String;
|
|
777
811
|
readonly state: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
|
|
778
|
-
readonly duration: Schema.optional<Schema.
|
|
812
|
+
readonly duration: Schema.optional<Schema.Finite>;
|
|
779
813
|
readonly errors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
780
814
|
readonly message: Schema.String;
|
|
781
815
|
readonly stack: Schema.optional<Schema.String>;
|
|
@@ -787,7 +821,7 @@ export declare const AgentReport: Schema.Struct<{
|
|
|
787
821
|
readonly name: Schema.String;
|
|
788
822
|
readonly fullName: Schema.String;
|
|
789
823
|
readonly state: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
|
|
790
|
-
readonly duration: Schema.optional<Schema.
|
|
824
|
+
readonly duration: Schema.optional<Schema.Finite>;
|
|
791
825
|
readonly flaky: Schema.optional<Schema.Boolean>;
|
|
792
826
|
readonly slow: Schema.optional<Schema.Boolean>;
|
|
793
827
|
readonly errors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -810,81 +844,81 @@ export declare const AgentReport: Schema.Struct<{
|
|
|
810
844
|
readonly failedFiles: Schema.$Array<Schema.String>;
|
|
811
845
|
readonly coverage: Schema.optional<Schema.Struct<{
|
|
812
846
|
readonly totals: Schema.Struct<{
|
|
813
|
-
readonly statements: Schema.
|
|
814
|
-
readonly branches: Schema.
|
|
815
|
-
readonly functions: Schema.
|
|
816
|
-
readonly lines: Schema.
|
|
847
|
+
readonly statements: Schema.Finite;
|
|
848
|
+
readonly branches: Schema.Finite;
|
|
849
|
+
readonly functions: Schema.Finite;
|
|
850
|
+
readonly lines: Schema.Finite;
|
|
817
851
|
}>;
|
|
818
852
|
readonly thresholds: Schema.Struct<{
|
|
819
853
|
readonly global: Schema.Struct<{
|
|
820
|
-
readonly lines: Schema.optional<Schema.
|
|
821
|
-
readonly functions: Schema.optional<Schema.
|
|
822
|
-
readonly branches: Schema.optional<Schema.
|
|
823
|
-
readonly statements: Schema.optional<Schema.
|
|
854
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
855
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
856
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
857
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
824
858
|
}>;
|
|
825
859
|
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
826
|
-
readonly lines: Schema.optional<Schema.
|
|
827
|
-
readonly functions: Schema.optional<Schema.
|
|
828
|
-
readonly branches: Schema.optional<Schema.
|
|
829
|
-
readonly statements: Schema.optional<Schema.
|
|
860
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
861
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
862
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
863
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
830
864
|
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
831
|
-
readonly lines: Schema.optional<Schema.
|
|
832
|
-
readonly functions: Schema.optional<Schema.
|
|
833
|
-
readonly branches: Schema.optional<Schema.
|
|
834
|
-
readonly statements: Schema.optional<Schema.
|
|
865
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
866
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
867
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
868
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
835
869
|
}>]>>;
|
|
836
870
|
}>]>>, never>;
|
|
837
871
|
}>;
|
|
838
872
|
readonly targets: Schema.optional<Schema.Struct<{
|
|
839
873
|
readonly global: Schema.Struct<{
|
|
840
|
-
readonly lines: Schema.optional<Schema.
|
|
841
|
-
readonly functions: Schema.optional<Schema.
|
|
842
|
-
readonly branches: Schema.optional<Schema.
|
|
843
|
-
readonly statements: Schema.optional<Schema.
|
|
874
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
875
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
876
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
877
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
844
878
|
}>;
|
|
845
879
|
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
846
|
-
readonly lines: Schema.optional<Schema.
|
|
847
|
-
readonly functions: Schema.optional<Schema.
|
|
848
|
-
readonly branches: Schema.optional<Schema.
|
|
849
|
-
readonly statements: Schema.optional<Schema.
|
|
880
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
881
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
882
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
883
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
850
884
|
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
851
|
-
readonly lines: Schema.optional<Schema.
|
|
852
|
-
readonly functions: Schema.optional<Schema.
|
|
853
|
-
readonly branches: Schema.optional<Schema.
|
|
854
|
-
readonly statements: Schema.optional<Schema.
|
|
885
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
886
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
887
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
888
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
855
889
|
}>]>>;
|
|
856
890
|
}>]>>, never>;
|
|
857
891
|
}>>;
|
|
858
892
|
readonly baselines: Schema.optional<Schema.Struct<{
|
|
859
893
|
readonly global: Schema.Struct<{
|
|
860
|
-
readonly lines: Schema.optional<Schema.
|
|
861
|
-
readonly functions: Schema.optional<Schema.
|
|
862
|
-
readonly branches: Schema.optional<Schema.
|
|
863
|
-
readonly statements: Schema.optional<Schema.
|
|
894
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
895
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
896
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
897
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
864
898
|
}>;
|
|
865
899
|
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
866
|
-
readonly lines: Schema.optional<Schema.
|
|
867
|
-
readonly functions: Schema.optional<Schema.
|
|
868
|
-
readonly branches: Schema.optional<Schema.
|
|
869
|
-
readonly statements: Schema.optional<Schema.
|
|
900
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
901
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
902
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
903
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
870
904
|
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
871
|
-
readonly lines: Schema.optional<Schema.
|
|
872
|
-
readonly functions: Schema.optional<Schema.
|
|
873
|
-
readonly branches: Schema.optional<Schema.
|
|
874
|
-
readonly statements: Schema.optional<Schema.
|
|
905
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
906
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
907
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
908
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
875
909
|
}>]>>;
|
|
876
910
|
}>]>>, never>;
|
|
877
911
|
}>>;
|
|
878
912
|
readonly scoped: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
879
913
|
readonly scopedFiles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
880
|
-
readonly totalFiles: Schema.optional<Schema.
|
|
914
|
+
readonly totalFiles: Schema.optional<Schema.Finite>;
|
|
881
915
|
readonly lowCoverage: Schema.$Array<Schema.Struct<{
|
|
882
916
|
readonly file: Schema.String;
|
|
883
917
|
readonly summary: Schema.Struct<{
|
|
884
|
-
readonly statements: Schema.
|
|
885
|
-
readonly branches: Schema.
|
|
886
|
-
readonly functions: Schema.
|
|
887
|
-
readonly lines: Schema.
|
|
918
|
+
readonly statements: Schema.Finite;
|
|
919
|
+
readonly branches: Schema.Finite;
|
|
920
|
+
readonly functions: Schema.Finite;
|
|
921
|
+
readonly lines: Schema.Finite;
|
|
888
922
|
}>;
|
|
889
923
|
readonly uncoveredLines: Schema.String;
|
|
890
924
|
}>>;
|
|
@@ -892,10 +926,10 @@ export declare const AgentReport: Schema.Struct<{
|
|
|
892
926
|
readonly belowTarget: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
893
927
|
readonly file: Schema.String;
|
|
894
928
|
readonly summary: Schema.Struct<{
|
|
895
|
-
readonly statements: Schema.
|
|
896
|
-
readonly branches: Schema.
|
|
897
|
-
readonly functions: Schema.
|
|
898
|
-
readonly lines: Schema.
|
|
929
|
+
readonly statements: Schema.Finite;
|
|
930
|
+
readonly branches: Schema.Finite;
|
|
931
|
+
readonly functions: Schema.Finite;
|
|
932
|
+
readonly lines: Schema.Finite;
|
|
899
933
|
}>;
|
|
900
934
|
readonly uncoveredLines: Schema.String;
|
|
901
935
|
}>>>;
|
|
@@ -903,44 +937,44 @@ export declare const AgentReport: Schema.Struct<{
|
|
|
903
937
|
readonly globShortfalls: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
904
938
|
readonly pattern: Schema.String;
|
|
905
939
|
readonly summary: Schema.Struct<{
|
|
906
|
-
readonly statements: Schema.
|
|
907
|
-
readonly branches: Schema.
|
|
908
|
-
readonly functions: Schema.
|
|
909
|
-
readonly lines: Schema.
|
|
940
|
+
readonly statements: Schema.Finite;
|
|
941
|
+
readonly branches: Schema.Finite;
|
|
942
|
+
readonly functions: Schema.Finite;
|
|
943
|
+
readonly lines: Schema.Finite;
|
|
910
944
|
}>;
|
|
911
945
|
readonly thresholds: Schema.Struct<{
|
|
912
|
-
readonly lines: Schema.optional<Schema.
|
|
913
|
-
readonly functions: Schema.optional<Schema.
|
|
914
|
-
readonly branches: Schema.optional<Schema.
|
|
915
|
-
readonly statements: Schema.optional<Schema.
|
|
946
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
947
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
948
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
949
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
916
950
|
}>;
|
|
917
951
|
}>>>;
|
|
918
952
|
}>>;
|
|
919
953
|
readonly tagCounts: Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{
|
|
920
|
-
readonly passed: Schema.optional<Schema.
|
|
921
|
-
readonly failed: Schema.optional<Schema.
|
|
922
|
-
readonly skipped: Schema.optional<Schema.
|
|
954
|
+
readonly passed: Schema.optional<Schema.Finite>;
|
|
955
|
+
readonly failed: Schema.optional<Schema.Finite>;
|
|
956
|
+
readonly skipped: Schema.optional<Schema.Finite>;
|
|
923
957
|
}>>>;
|
|
924
958
|
readonly consoleLeaks: Schema.optional<Schema.Struct<{
|
|
925
|
-
readonly total: Schema.
|
|
959
|
+
readonly total: Schema.Finite;
|
|
926
960
|
readonly byFile: Schema.$Array<Schema.Struct<{
|
|
927
961
|
readonly file: Schema.String;
|
|
928
|
-
readonly stdout: Schema.
|
|
929
|
-
readonly stderr: Schema.
|
|
962
|
+
readonly stdout: Schema.Finite;
|
|
963
|
+
readonly stderr: Schema.Finite;
|
|
930
964
|
readonly tests: Schema.optional<Schema.$Array<Schema.String>>;
|
|
931
965
|
readonly sample: Schema.optional<Schema.String>;
|
|
932
966
|
}>>;
|
|
933
967
|
readonly truncated: Schema.optional<Schema.Boolean>;
|
|
934
968
|
readonly fromFailingTests: Schema.optional<Schema.Struct<{
|
|
935
|
-
readonly total: Schema.
|
|
936
|
-
readonly files: Schema.
|
|
969
|
+
readonly total: Schema.Finite;
|
|
970
|
+
readonly files: Schema.Finite;
|
|
937
971
|
}>>;
|
|
938
972
|
}>>;
|
|
939
973
|
readonly strayOutput: Schema.optional<Schema.Struct<{
|
|
940
|
-
readonly total: Schema.
|
|
941
|
-
readonly stdout: Schema.
|
|
942
|
-
readonly stderr: Schema.
|
|
943
|
-
readonly bytes: Schema.
|
|
974
|
+
readonly total: Schema.Finite;
|
|
975
|
+
readonly stdout: Schema.Finite;
|
|
976
|
+
readonly stderr: Schema.Finite;
|
|
977
|
+
readonly bytes: Schema.Finite;
|
|
944
978
|
readonly samples: Schema.$Array<Schema.Struct<{
|
|
945
979
|
readonly stream: Schema.Literals<readonly ["stdout", "stderr"]>;
|
|
946
980
|
readonly text: Schema.String;
|
|
@@ -949,6 +983,27 @@ export declare const AgentReport: Schema.Struct<{
|
|
|
949
983
|
}>;
|
|
950
984
|
/** @public */
|
|
951
985
|
export type AgentReport = typeof AgentReport.Type;
|
|
986
|
+
/**
|
|
987
|
+
* A finite JSON number: the numeric field type for every schema that
|
|
988
|
+
* reaches a published document (`RunReportFile` and the `schemas/5.0/run.json`
|
|
989
|
+
* it generates). The `Type` is still `number`, and a finite value decodes
|
|
990
|
+
* exactly as it did under `Schema.Number`; only `NaN`, `Infinity` and
|
|
991
|
+
* `-Infinity` are rejected.
|
|
992
|
+
*
|
|
993
|
+
* @remarks
|
|
994
|
+
* `Schema.Number` lowers to JSON Schema as
|
|
995
|
+
* `anyOf: [{ type: "number" }, { type: "string", enum: ["Infinity", "-Infinity", "NaN"] }]`
|
|
996
|
+
* so the JSON codec can round-trip the non-finite values JSON has no
|
|
997
|
+
* literal for. The reporter writes those fields with `JSON.stringify`,
|
|
998
|
+
* which never produces the string arms, so the published schema was
|
|
999
|
+
* looser than the data and a type generator read every count and
|
|
1000
|
+
* duration as `number | "Infinity" | "-Infinity" | "NaN"` (issue #392).
|
|
1001
|
+
* `Schema.Finite`'s check carries a `{ type: "number" }` JSON Schema
|
|
1002
|
+
* annotation that the emitter folds into the bare number type.
|
|
1003
|
+
*
|
|
1004
|
+
* @public
|
|
1005
|
+
*/
|
|
1006
|
+
export declare const FiniteNumber: Schema.Finite;
|
|
952
1007
|
/**
|
|
953
1008
|
* Possible states for an individual test case.
|
|
954
1009
|
* @public
|
|
@@ -1106,10 +1161,10 @@ export type ConsoleLogLevel = typeof ConsoleLogLevel.Type;
|
|
|
1106
1161
|
export declare const CoverageGap: Schema.Struct<{
|
|
1107
1162
|
readonly file: Schema.String;
|
|
1108
1163
|
readonly missing: Schema.Struct<{
|
|
1109
|
-
readonly statements: Schema.
|
|
1110
|
-
readonly branches: Schema.
|
|
1111
|
-
readonly functions: Schema.
|
|
1112
|
-
readonly lines: Schema.
|
|
1164
|
+
readonly statements: Schema.Finite;
|
|
1165
|
+
readonly branches: Schema.Finite;
|
|
1166
|
+
readonly functions: Schema.Finite;
|
|
1167
|
+
readonly lines: Schema.Finite;
|
|
1113
1168
|
}>;
|
|
1114
1169
|
readonly uncoveredLines: Schema.optional<Schema.String>;
|
|
1115
1170
|
}>;
|
|
@@ -1246,24 +1301,24 @@ export declare const RunEvent: Schema.Union<readonly [Schema.TaggedStruct<"RunSt
|
|
|
1246
1301
|
readonly runCount: Schema.Number;
|
|
1247
1302
|
}>, Schema.TaggedStruct<"CoverageReady", {
|
|
1248
1303
|
readonly metrics: Schema.Struct<{
|
|
1249
|
-
readonly statements: Schema.
|
|
1250
|
-
readonly branches: Schema.
|
|
1251
|
-
readonly functions: Schema.
|
|
1252
|
-
readonly lines: Schema.
|
|
1304
|
+
readonly statements: Schema.Finite;
|
|
1305
|
+
readonly branches: Schema.Finite;
|
|
1306
|
+
readonly functions: Schema.Finite;
|
|
1307
|
+
readonly lines: Schema.Finite;
|
|
1253
1308
|
}>;
|
|
1254
1309
|
readonly thresholds: Schema.Struct<{
|
|
1255
|
-
readonly lines: Schema.optional<Schema.
|
|
1256
|
-
readonly functions: Schema.optional<Schema.
|
|
1257
|
-
readonly branches: Schema.optional<Schema.
|
|
1258
|
-
readonly statements: Schema.optional<Schema.
|
|
1310
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1311
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1312
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1313
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1259
1314
|
}>;
|
|
1260
1315
|
readonly gaps: Schema.$Array<Schema.Struct<{
|
|
1261
1316
|
readonly file: Schema.String;
|
|
1262
1317
|
readonly missing: Schema.Struct<{
|
|
1263
|
-
readonly statements: Schema.
|
|
1264
|
-
readonly branches: Schema.
|
|
1265
|
-
readonly functions: Schema.
|
|
1266
|
-
readonly lines: Schema.
|
|
1318
|
+
readonly statements: Schema.Finite;
|
|
1319
|
+
readonly branches: Schema.Finite;
|
|
1320
|
+
readonly functions: Schema.Finite;
|
|
1321
|
+
readonly lines: Schema.Finite;
|
|
1267
1322
|
}>;
|
|
1268
1323
|
readonly uncoveredLines: Schema.optional<Schema.String>;
|
|
1269
1324
|
}>>;
|
|
@@ -1273,16 +1328,16 @@ export declare const RunEvent: Schema.Union<readonly [Schema.TaggedStruct<"RunSt
|
|
|
1273
1328
|
readonly globShortfalls: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1274
1329
|
readonly pattern: Schema.String;
|
|
1275
1330
|
readonly summary: Schema.Struct<{
|
|
1276
|
-
readonly statements: Schema.
|
|
1277
|
-
readonly branches: Schema.
|
|
1278
|
-
readonly functions: Schema.
|
|
1279
|
-
readonly lines: Schema.
|
|
1331
|
+
readonly statements: Schema.Finite;
|
|
1332
|
+
readonly branches: Schema.Finite;
|
|
1333
|
+
readonly functions: Schema.Finite;
|
|
1334
|
+
readonly lines: Schema.Finite;
|
|
1280
1335
|
}>;
|
|
1281
1336
|
readonly thresholds: Schema.Struct<{
|
|
1282
|
-
readonly lines: Schema.optional<Schema.
|
|
1283
|
-
readonly functions: Schema.optional<Schema.
|
|
1284
|
-
readonly branches: Schema.optional<Schema.
|
|
1285
|
-
readonly statements: Schema.optional<Schema.
|
|
1337
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1338
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1339
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1340
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1286
1341
|
}>;
|
|
1287
1342
|
}>>>;
|
|
1288
1343
|
}>, Schema.TaggedStruct<"ThresholdViolation", {
|
|
@@ -1333,15 +1388,35 @@ export declare const RunEvent: Schema.Union<readonly [Schema.TaggedStruct<"RunSt
|
|
|
1333
1388
|
* wrote nothing stray, and in older replay data.
|
|
1334
1389
|
*/
|
|
1335
1390
|
readonly strayOutput: Schema.optional<Schema.Struct<{
|
|
1336
|
-
readonly total: Schema.
|
|
1337
|
-
readonly stdout: Schema.
|
|
1338
|
-
readonly stderr: Schema.
|
|
1339
|
-
readonly bytes: Schema.
|
|
1391
|
+
readonly total: Schema.Finite;
|
|
1392
|
+
readonly stdout: Schema.Finite;
|
|
1393
|
+
readonly stderr: Schema.Finite;
|
|
1394
|
+
readonly bytes: Schema.Finite;
|
|
1340
1395
|
readonly samples: Schema.$Array<Schema.Struct<{
|
|
1341
1396
|
readonly stream: Schema.Literals<readonly ["stdout", "stderr"]>;
|
|
1342
1397
|
readonly text: Schema.String;
|
|
1343
1398
|
}>>;
|
|
1344
1399
|
}>>;
|
|
1400
|
+
/**
|
|
1401
|
+
* `console.*` output Vitest captured from tests that did not fail
|
|
1402
|
+
* (`AgentReport.consoleLeaks`). Optional: absent when the run logged
|
|
1403
|
+
* nothing, and in older replay data (issue #544).
|
|
1404
|
+
*/
|
|
1405
|
+
readonly consoleLeaks: Schema.optional<Schema.Struct<{
|
|
1406
|
+
readonly total: Schema.Finite;
|
|
1407
|
+
readonly byFile: Schema.$Array<Schema.Struct<{
|
|
1408
|
+
readonly file: Schema.String;
|
|
1409
|
+
readonly stdout: Schema.Finite;
|
|
1410
|
+
readonly stderr: Schema.Finite;
|
|
1411
|
+
readonly tests: Schema.optional<Schema.$Array<Schema.String>>;
|
|
1412
|
+
readonly sample: Schema.optional<Schema.String>;
|
|
1413
|
+
}>>;
|
|
1414
|
+
readonly truncated: Schema.optional<Schema.Boolean>;
|
|
1415
|
+
readonly fromFailingTests: Schema.optional<Schema.Struct<{
|
|
1416
|
+
readonly total: Schema.Finite;
|
|
1417
|
+
readonly files: Schema.Finite;
|
|
1418
|
+
}>>;
|
|
1419
|
+
}>>;
|
|
1345
1420
|
}>]>;
|
|
1346
1421
|
/** @public */
|
|
1347
1422
|
export type RunEvent = typeof RunEvent.Type;
|
|
@@ -1358,10 +1433,10 @@ export type RunEventByTag = { [E in RunEvent as E["_tag"]]: E; };
|
|
|
1358
1433
|
* @public
|
|
1359
1434
|
*/
|
|
1360
1435
|
export declare const MetricThresholds: Schema.Struct<{
|
|
1361
|
-
readonly lines: Schema.optional<Schema.
|
|
1362
|
-
readonly functions: Schema.optional<Schema.
|
|
1363
|
-
readonly branches: Schema.optional<Schema.
|
|
1364
|
-
readonly statements: Schema.optional<Schema.
|
|
1436
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1437
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1438
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1439
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1365
1440
|
}>;
|
|
1366
1441
|
/** @public */
|
|
1367
1442
|
export type MetricThresholds = typeof MetricThresholds.Type;
|
|
@@ -1375,10 +1450,10 @@ export type MetricThresholds = typeof MetricThresholds.Type;
|
|
|
1375
1450
|
* @public
|
|
1376
1451
|
*/
|
|
1377
1452
|
export declare const PerFileThresholds: Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
1378
|
-
readonly lines: Schema.optional<Schema.
|
|
1379
|
-
readonly functions: Schema.optional<Schema.
|
|
1380
|
-
readonly branches: Schema.optional<Schema.
|
|
1381
|
-
readonly statements: Schema.optional<Schema.
|
|
1453
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1454
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1455
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1456
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1382
1457
|
}>]>;
|
|
1383
1458
|
/** @public */
|
|
1384
1459
|
export type PerFileThresholds = typeof PerFileThresholds.Type;
|
|
@@ -1389,15 +1464,15 @@ export type PerFileThresholds = typeof PerFileThresholds.Type;
|
|
|
1389
1464
|
* @public
|
|
1390
1465
|
*/
|
|
1391
1466
|
export declare const PatternMetricThresholds: Schema.Struct<{
|
|
1392
|
-
readonly lines: Schema.optional<Schema.
|
|
1393
|
-
readonly functions: Schema.optional<Schema.
|
|
1394
|
-
readonly branches: Schema.optional<Schema.
|
|
1395
|
-
readonly statements: Schema.optional<Schema.
|
|
1467
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1468
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1469
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1470
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1396
1471
|
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
1397
|
-
readonly lines: Schema.optional<Schema.
|
|
1398
|
-
readonly functions: Schema.optional<Schema.
|
|
1399
|
-
readonly branches: Schema.optional<Schema.
|
|
1400
|
-
readonly statements: Schema.optional<Schema.
|
|
1472
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1473
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1474
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1475
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1401
1476
|
}>]>>;
|
|
1402
1477
|
}>;
|
|
1403
1478
|
/** @public */
|
|
@@ -1407,15 +1482,15 @@ export type PatternMetricThresholds = typeof PatternMetricThresholds.Type;
|
|
|
1407
1482
|
* @public
|
|
1408
1483
|
*/
|
|
1409
1484
|
export declare const PatternThresholds: Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
1410
|
-
readonly lines: Schema.optional<Schema.
|
|
1411
|
-
readonly functions: Schema.optional<Schema.
|
|
1412
|
-
readonly branches: Schema.optional<Schema.
|
|
1413
|
-
readonly statements: Schema.optional<Schema.
|
|
1485
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1486
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1487
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1488
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1414
1489
|
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
1415
|
-
readonly lines: Schema.optional<Schema.
|
|
1416
|
-
readonly functions: Schema.optional<Schema.
|
|
1417
|
-
readonly branches: Schema.optional<Schema.
|
|
1418
|
-
readonly statements: Schema.optional<Schema.
|
|
1490
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1491
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1492
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1493
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1419
1494
|
}>]>>;
|
|
1420
1495
|
}>]>;
|
|
1421
1496
|
/** @public */
|
|
@@ -1426,27 +1501,27 @@ export type PatternThresholds = typeof PatternThresholds.Type;
|
|
|
1426
1501
|
*/
|
|
1427
1502
|
export declare const ResolvedThresholds: Schema.Struct<{
|
|
1428
1503
|
readonly global: Schema.Struct<{
|
|
1429
|
-
readonly lines: Schema.optional<Schema.
|
|
1430
|
-
readonly functions: Schema.optional<Schema.
|
|
1431
|
-
readonly branches: Schema.optional<Schema.
|
|
1432
|
-
readonly statements: Schema.optional<Schema.
|
|
1504
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1505
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1506
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1507
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1433
1508
|
}>;
|
|
1434
1509
|
readonly perFile: Schema.withDecodingDefaultKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
1435
|
-
readonly lines: Schema.optional<Schema.
|
|
1436
|
-
readonly functions: Schema.optional<Schema.
|
|
1437
|
-
readonly branches: Schema.optional<Schema.
|
|
1438
|
-
readonly statements: Schema.optional<Schema.
|
|
1510
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1511
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1512
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1513
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1439
1514
|
}>]>, never>;
|
|
1440
1515
|
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
1441
|
-
readonly lines: Schema.optional<Schema.
|
|
1442
|
-
readonly functions: Schema.optional<Schema.
|
|
1443
|
-
readonly branches: Schema.optional<Schema.
|
|
1444
|
-
readonly statements: Schema.optional<Schema.
|
|
1516
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1517
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1518
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1519
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1445
1520
|
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
1446
|
-
readonly lines: Schema.optional<Schema.
|
|
1447
|
-
readonly functions: Schema.optional<Schema.
|
|
1448
|
-
readonly branches: Schema.optional<Schema.
|
|
1449
|
-
readonly statements: Schema.optional<Schema.
|
|
1521
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
1522
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
1523
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
1524
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
1450
1525
|
}>]>>;
|
|
1451
1526
|
}>]>>, never>;
|
|
1452
1527
|
}>;
|
|
@@ -1477,8 +1552,8 @@ export type Transport = typeof Transport.Type;
|
|
|
1477
1552
|
*
|
|
1478
1553
|
* `detail` is pre-resolved by the plugin (via `DetailResolver`) but
|
|
1479
1554
|
* reporters that want to override can ignore it. `noColor` is the resolved
|
|
1480
|
-
* value of the `NO_COLOR` env var; reporters use it to gate ANSI escapes
|
|
1481
|
-
*
|
|
1555
|
+
* value of the `NO_COLOR` env var; reporters use it to gate ANSI escapes
|
|
1556
|
+
* (hyperlinks are the kit's decision: `@effected/cli`'s `CliLinks`).
|
|
1482
1557
|
* @public
|
|
1483
1558
|
*/
|
|
1484
1559
|
export interface ResolvedReporterConfig {
|
|
@@ -1563,8 +1638,9 @@ export interface ResolvedReporterConfig {
|
|
|
1563
1638
|
* Plugin-provided primitives passed to the reporter factory at construction
|
|
1564
1639
|
* time. The `std*` prefix marks these as "the plugin gives you these — do
|
|
1565
1640
|
* not import equivalents yourself"; they are pre-resolved with full context
|
|
1566
|
-
* (environment, executor, NO_COLOR
|
|
1567
|
-
*
|
|
1641
|
+
* (environment, executor, NO_COLOR) so the reporter doesn't have to
|
|
1642
|
+
* re-derive that state. File hyperlinks are not among them: the reporter
|
|
1643
|
+
* reads `@effected/cli`'s `CliLinks` from its own environment.
|
|
1568
1644
|
*
|
|
1569
1645
|
* The shape is open to additions: future fields (e.g. `stdLogger`,
|
|
1570
1646
|
* `stdRuntime`) won't break existing reporters because the parameter is a
|
|
@@ -1574,12 +1650,6 @@ export interface ResolvedReporterConfig {
|
|
|
1574
1650
|
export interface ReporterKit {
|
|
1575
1651
|
readonly config: ResolvedReporterConfig;
|
|
1576
1652
|
readonly stdEnv: Environment;
|
|
1577
|
-
/**
|
|
1578
|
-
* Pre-bound OSC-8 hyperlink helper. The plugin has already decided
|
|
1579
|
-
* whether OSC-8 should be enabled (target=stdout, !noColor) so the
|
|
1580
|
-
* reporter can call this directly without consulting environment.
|
|
1581
|
-
*/
|
|
1582
|
-
readonly stdOsc8: (url: string, label: string) => string;
|
|
1583
1653
|
/**
|
|
1584
1654
|
* Live run-event channel. The plugin publishes one `RunEvent`
|
|
1585
1655
|
* per Vitest streaming callback (`onTestRunStart`, `onTestModuleStart`,
|
|
@@ -1610,6 +1680,13 @@ export interface ReporterKit {
|
|
|
1610
1680
|
export interface ReporterRenderInput {
|
|
1611
1681
|
readonly reports: ReadonlyArray<AgentReport>;
|
|
1612
1682
|
readonly classifications: ReadonlyMap<string, TestClassification>;
|
|
1683
|
+
/**
|
|
1684
|
+
* Run-level suggested actions for the agent (a `SuggestedAction` event
|
|
1685
|
+
* each), rendered as a compact `Actions:` list after the cell output. The
|
|
1686
|
+
* default reporter feeds them to the synthesizer for every report; absent
|
|
1687
|
+
* when the plugin has nothing to suggest (issue #544).
|
|
1688
|
+
*/
|
|
1689
|
+
readonly suggestedActions?: ReadonlyArray<SuggestedActionRecord>;
|
|
1613
1690
|
readonly trendSummary?: {
|
|
1614
1691
|
readonly direction: "improving" | "regressing" | "stable";
|
|
1615
1692
|
readonly runCount: number;
|
|
@@ -1949,6 +2026,53 @@ export declare class ProjectIdentityNotResolvableError extends ProjectIdentityNo
|
|
|
1949
2026
|
readonly tried: ReadonlyArray<ProjectIdentityCandidate>;
|
|
1950
2027
|
});
|
|
1951
2028
|
}
|
|
2029
|
+
/**
|
|
2030
|
+
* Which identity source failed to be read or decoded.
|
|
2031
|
+
*
|
|
2032
|
+
* - `toml` — `vitest-agent.config.toml` was found but could not be read,
|
|
2033
|
+
* parsed, or did not satisfy `VitestAgentConfig`.
|
|
2034
|
+
* - `package-json` — the root `package.json` discovery named could not be
|
|
2035
|
+
* read (other than not existing) or is not valid JSON.
|
|
2036
|
+
* - `workspace` — workspace discovery itself failed inside a workspace (a
|
|
2037
|
+
* malformed manifest, an unexpandable `packages:` pattern); a directory
|
|
2038
|
+
* that sits in no workspace is not an error, it is an absent source.
|
|
2039
|
+
* @public
|
|
2040
|
+
*/
|
|
2041
|
+
export type ProjectIdentitySource = "toml" | "package-json" | "workspace";
|
|
2042
|
+
declare const ProjectIdentitySourceError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
2043
|
+
readonly _tag: "ProjectIdentitySourceError";
|
|
2044
|
+
} & Readonly<A>;
|
|
2045
|
+
/**
|
|
2046
|
+
* Raised by `ProjectIdentity.resolve` when a source that IS present cannot
|
|
2047
|
+
* be used: a malformed `vitest-agent.config.toml`, an unreadable or
|
|
2048
|
+
* malformed root `package.json`, or a workspace manifest discovery rejects.
|
|
2049
|
+
*
|
|
2050
|
+
* Distinct from `ProjectIdentityNotResolvableError`, which means every
|
|
2051
|
+
* source was absent or empty. An operator with a broken config file must
|
|
2052
|
+
* see this rather than silently receive the default identity (issue 321);
|
|
2053
|
+
* `cause` carries the kit's structured failure for callers that branch on
|
|
2054
|
+
* it, and `detail` its one-line message.
|
|
2055
|
+
* @public
|
|
2056
|
+
*/
|
|
2057
|
+
export declare class ProjectIdentitySourceError extends ProjectIdentitySourceError_base<{
|
|
2058
|
+
readonly source: ProjectIdentitySource;
|
|
2059
|
+
readonly path: string;
|
|
2060
|
+
readonly detail: string;
|
|
2061
|
+
readonly cause: unknown;
|
|
2062
|
+
}> {
|
|
2063
|
+
constructor(args: {
|
|
2064
|
+
readonly source: ProjectIdentitySource;
|
|
2065
|
+
readonly path: string;
|
|
2066
|
+
readonly detail: string;
|
|
2067
|
+
readonly cause: unknown;
|
|
2068
|
+
});
|
|
2069
|
+
}
|
|
2070
|
+
/**
|
|
2071
|
+
* Every failure `ProjectIdentity.resolve` can surface: no source produced a
|
|
2072
|
+
* value, or a present source could not be used.
|
|
2073
|
+
* @public
|
|
2074
|
+
*/
|
|
2075
|
+
export type ProjectIdentityError = ProjectIdentityNotResolvableError | ProjectIdentitySourceError;
|
|
1952
2076
|
declare const GitCommandError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
1953
2077
|
readonly _tag: "GitCommandError";
|
|
1954
2078
|
} & Readonly<A>;
|
|
@@ -2124,21 +2248,21 @@ export interface AgentTreeNode {
|
|
|
2124
2248
|
export declare const CoverageBaselines: Schema.Struct<{
|
|
2125
2249
|
readonly updatedAt: Schema.String;
|
|
2126
2250
|
readonly global: Schema.Struct<{
|
|
2127
|
-
readonly lines: Schema.optional<Schema.
|
|
2128
|
-
readonly functions: Schema.optional<Schema.
|
|
2129
|
-
readonly branches: Schema.optional<Schema.
|
|
2130
|
-
readonly statements: Schema.optional<Schema.
|
|
2251
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
2252
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
2253
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
2254
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
2131
2255
|
}>;
|
|
2132
2256
|
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
2133
|
-
readonly lines: Schema.optional<Schema.
|
|
2134
|
-
readonly functions: Schema.optional<Schema.
|
|
2135
|
-
readonly branches: Schema.optional<Schema.
|
|
2136
|
-
readonly statements: Schema.optional<Schema.
|
|
2257
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
2258
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
2259
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
2260
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
2137
2261
|
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
2138
|
-
readonly lines: Schema.optional<Schema.
|
|
2139
|
-
readonly functions: Schema.optional<Schema.
|
|
2140
|
-
readonly branches: Schema.optional<Schema.
|
|
2141
|
-
readonly statements: Schema.optional<Schema.
|
|
2262
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
2263
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
2264
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
2265
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
2142
2266
|
}>]>>;
|
|
2143
2267
|
}>]>>, never>;
|
|
2144
2268
|
}>;
|
|
@@ -2500,8 +2624,8 @@ export declare class RunRetentionPolicy extends RunRetentionPolicy_base {
|
|
|
2500
2624
|
*/
|
|
2501
2625
|
export declare const ConsoleLeakFile: Schema.Struct<{
|
|
2502
2626
|
readonly file: Schema.String;
|
|
2503
|
-
readonly stdout: Schema.
|
|
2504
|
-
readonly stderr: Schema.
|
|
2627
|
+
readonly stdout: Schema.Finite;
|
|
2628
|
+
readonly stderr: Schema.Finite;
|
|
2505
2629
|
readonly tests: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2506
2630
|
readonly sample: Schema.optional<Schema.String>;
|
|
2507
2631
|
}>;
|
|
@@ -2516,8 +2640,8 @@ export type ConsoleLeakFile = typeof ConsoleLeakFile.Type;
|
|
|
2516
2640
|
* @public
|
|
2517
2641
|
*/
|
|
2518
2642
|
export declare const ConsoleLeaksFromFailingTests: Schema.Struct<{
|
|
2519
|
-
readonly total: Schema.
|
|
2520
|
-
readonly files: Schema.
|
|
2643
|
+
readonly total: Schema.Finite;
|
|
2644
|
+
readonly files: Schema.Finite;
|
|
2521
2645
|
}>;
|
|
2522
2646
|
/** @public */
|
|
2523
2647
|
export type ConsoleLeaksFromFailingTests = typeof ConsoleLeaksFromFailingTests.Type;
|
|
@@ -2531,18 +2655,18 @@ export type ConsoleLeaksFromFailingTests = typeof ConsoleLeaksFromFailingTests.T
|
|
|
2531
2655
|
* @public
|
|
2532
2656
|
*/
|
|
2533
2657
|
export declare const ConsoleLeaks: Schema.Struct<{
|
|
2534
|
-
readonly total: Schema.
|
|
2658
|
+
readonly total: Schema.Finite;
|
|
2535
2659
|
readonly byFile: Schema.$Array<Schema.Struct<{
|
|
2536
2660
|
readonly file: Schema.String;
|
|
2537
|
-
readonly stdout: Schema.
|
|
2538
|
-
readonly stderr: Schema.
|
|
2661
|
+
readonly stdout: Schema.Finite;
|
|
2662
|
+
readonly stderr: Schema.Finite;
|
|
2539
2663
|
readonly tests: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2540
2664
|
readonly sample: Schema.optional<Schema.String>;
|
|
2541
2665
|
}>>;
|
|
2542
2666
|
readonly truncated: Schema.optional<Schema.Boolean>;
|
|
2543
2667
|
readonly fromFailingTests: Schema.optional<Schema.Struct<{
|
|
2544
|
-
readonly total: Schema.
|
|
2545
|
-
readonly files: Schema.
|
|
2668
|
+
readonly total: Schema.Finite;
|
|
2669
|
+
readonly files: Schema.Finite;
|
|
2546
2670
|
}>>;
|
|
2547
2671
|
}>;
|
|
2548
2672
|
/** @public */
|
|
@@ -2621,10 +2745,10 @@ export declare const CoverageTargetsMetrics: Schema.Struct<{
|
|
|
2621
2745
|
readonly statements: Schema.optional<Schema.Number>;
|
|
2622
2746
|
readonly 100: Schema.optional<Schema.Literal<true>>;
|
|
2623
2747
|
readonly perFile: Schema.optional<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
2624
|
-
readonly lines: Schema.optional<Schema.
|
|
2625
|
-
readonly functions: Schema.optional<Schema.
|
|
2626
|
-
readonly branches: Schema.optional<Schema.
|
|
2627
|
-
readonly statements: Schema.optional<Schema.
|
|
2748
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
2749
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
2750
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
2751
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
2628
2752
|
}>]>>;
|
|
2629
2753
|
}>;
|
|
2630
2754
|
/** @public */
|
|
@@ -2653,10 +2777,10 @@ export declare const CoverageTargets: Schema.$Record<Schema.String, Schema.Union
|
|
|
2653
2777
|
readonly statements: Schema.optional<Schema.Number>;
|
|
2654
2778
|
readonly 100: Schema.optional<Schema.Literal<true>>;
|
|
2655
2779
|
readonly perFile: Schema.optional<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
2656
|
-
readonly lines: Schema.optional<Schema.
|
|
2657
|
-
readonly functions: Schema.optional<Schema.
|
|
2658
|
-
readonly branches: Schema.optional<Schema.
|
|
2659
|
-
readonly statements: Schema.optional<Schema.
|
|
2780
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
2781
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
2782
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
2783
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
2660
2784
|
}>]>>;
|
|
2661
2785
|
}>]>>;
|
|
2662
2786
|
/** @public */
|
|
@@ -2770,10 +2894,10 @@ export declare const AgentPluginOptions: Schema.Struct<{
|
|
|
2770
2894
|
readonly statements: Schema.optional<Schema.Number>;
|
|
2771
2895
|
readonly 100: Schema.optional<Schema.Literal<true>>;
|
|
2772
2896
|
readonly perFile: Schema.optional<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
2773
|
-
readonly lines: Schema.optional<Schema.
|
|
2774
|
-
readonly functions: Schema.optional<Schema.
|
|
2775
|
-
readonly branches: Schema.optional<Schema.
|
|
2776
|
-
readonly statements: Schema.optional<Schema.
|
|
2897
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
2898
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
2899
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
2900
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
2777
2901
|
}>]>>;
|
|
2778
2902
|
}>]>>>;
|
|
2779
2903
|
readonly transport: Schema.optional<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -2857,17 +2981,17 @@ export declare const RunReportFile: Schema.Struct<{
|
|
|
2857
2981
|
readonly project: Schema.optional<Schema.String>;
|
|
2858
2982
|
readonly reason: Schema.Literals<readonly ["passed", "failed", "interrupted"]>;
|
|
2859
2983
|
readonly summary: Schema.Struct<{
|
|
2860
|
-
readonly total: Schema.
|
|
2861
|
-
readonly passed: Schema.
|
|
2862
|
-
readonly failed: Schema.
|
|
2863
|
-
readonly skipped: Schema.
|
|
2864
|
-
readonly duration: Schema.
|
|
2865
|
-
readonly modules: Schema.optional<Schema.
|
|
2984
|
+
readonly total: Schema.Finite;
|
|
2985
|
+
readonly passed: Schema.Finite;
|
|
2986
|
+
readonly failed: Schema.Finite;
|
|
2987
|
+
readonly skipped: Schema.Finite;
|
|
2988
|
+
readonly duration: Schema.Finite;
|
|
2989
|
+
readonly modules: Schema.optional<Schema.Finite>;
|
|
2866
2990
|
}>;
|
|
2867
2991
|
readonly failed: Schema.$Array<Schema.Struct<{
|
|
2868
2992
|
readonly file: Schema.String;
|
|
2869
2993
|
readonly state: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
|
|
2870
|
-
readonly duration: Schema.optional<Schema.
|
|
2994
|
+
readonly duration: Schema.optional<Schema.Finite>;
|
|
2871
2995
|
readonly errors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2872
2996
|
readonly message: Schema.String;
|
|
2873
2997
|
readonly stack: Schema.optional<Schema.String>;
|
|
@@ -2879,7 +3003,7 @@ export declare const RunReportFile: Schema.Struct<{
|
|
|
2879
3003
|
readonly name: Schema.String;
|
|
2880
3004
|
readonly fullName: Schema.String;
|
|
2881
3005
|
readonly state: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
|
|
2882
|
-
readonly duration: Schema.optional<Schema.
|
|
3006
|
+
readonly duration: Schema.optional<Schema.Finite>;
|
|
2883
3007
|
readonly flaky: Schema.optional<Schema.Boolean>;
|
|
2884
3008
|
readonly slow: Schema.optional<Schema.Boolean>;
|
|
2885
3009
|
readonly errors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -2902,81 +3026,81 @@ export declare const RunReportFile: Schema.Struct<{
|
|
|
2902
3026
|
readonly failedFiles: Schema.$Array<Schema.String>;
|
|
2903
3027
|
readonly coverage: Schema.optional<Schema.Struct<{
|
|
2904
3028
|
readonly totals: Schema.Struct<{
|
|
2905
|
-
readonly statements: Schema.
|
|
2906
|
-
readonly branches: Schema.
|
|
2907
|
-
readonly functions: Schema.
|
|
2908
|
-
readonly lines: Schema.
|
|
3029
|
+
readonly statements: Schema.Finite;
|
|
3030
|
+
readonly branches: Schema.Finite;
|
|
3031
|
+
readonly functions: Schema.Finite;
|
|
3032
|
+
readonly lines: Schema.Finite;
|
|
2909
3033
|
}>;
|
|
2910
3034
|
readonly thresholds: Schema.Struct<{
|
|
2911
3035
|
readonly global: Schema.Struct<{
|
|
2912
|
-
readonly lines: Schema.optional<Schema.
|
|
2913
|
-
readonly functions: Schema.optional<Schema.
|
|
2914
|
-
readonly branches: Schema.optional<Schema.
|
|
2915
|
-
readonly statements: Schema.optional<Schema.
|
|
3036
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
3037
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
3038
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
3039
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
2916
3040
|
}>;
|
|
2917
3041
|
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
2918
|
-
readonly lines: Schema.optional<Schema.
|
|
2919
|
-
readonly functions: Schema.optional<Schema.
|
|
2920
|
-
readonly branches: Schema.optional<Schema.
|
|
2921
|
-
readonly statements: Schema.optional<Schema.
|
|
3042
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
3043
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
3044
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
3045
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
2922
3046
|
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
2923
|
-
readonly lines: Schema.optional<Schema.
|
|
2924
|
-
readonly functions: Schema.optional<Schema.
|
|
2925
|
-
readonly branches: Schema.optional<Schema.
|
|
2926
|
-
readonly statements: Schema.optional<Schema.
|
|
3047
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
3048
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
3049
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
3050
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
2927
3051
|
}>]>>;
|
|
2928
3052
|
}>]>>, never>;
|
|
2929
3053
|
}>;
|
|
2930
3054
|
readonly targets: Schema.optional<Schema.Struct<{
|
|
2931
3055
|
readonly global: Schema.Struct<{
|
|
2932
|
-
readonly lines: Schema.optional<Schema.
|
|
2933
|
-
readonly functions: Schema.optional<Schema.
|
|
2934
|
-
readonly branches: Schema.optional<Schema.
|
|
2935
|
-
readonly statements: Schema.optional<Schema.
|
|
3056
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
3057
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
3058
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
3059
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
2936
3060
|
}>;
|
|
2937
3061
|
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
2938
|
-
readonly lines: Schema.optional<Schema.
|
|
2939
|
-
readonly functions: Schema.optional<Schema.
|
|
2940
|
-
readonly branches: Schema.optional<Schema.
|
|
2941
|
-
readonly statements: Schema.optional<Schema.
|
|
3062
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
3063
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
3064
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
3065
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
2942
3066
|
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
2943
|
-
readonly lines: Schema.optional<Schema.
|
|
2944
|
-
readonly functions: Schema.optional<Schema.
|
|
2945
|
-
readonly branches: Schema.optional<Schema.
|
|
2946
|
-
readonly statements: Schema.optional<Schema.
|
|
3067
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
3068
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
3069
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
3070
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
2947
3071
|
}>]>>;
|
|
2948
3072
|
}>]>>, never>;
|
|
2949
3073
|
}>>;
|
|
2950
3074
|
readonly baselines: Schema.optional<Schema.Struct<{
|
|
2951
3075
|
readonly global: Schema.Struct<{
|
|
2952
|
-
readonly lines: Schema.optional<Schema.
|
|
2953
|
-
readonly functions: Schema.optional<Schema.
|
|
2954
|
-
readonly branches: Schema.optional<Schema.
|
|
2955
|
-
readonly statements: Schema.optional<Schema.
|
|
3076
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
3077
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
3078
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
3079
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
2956
3080
|
}>;
|
|
2957
3081
|
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
2958
|
-
readonly lines: Schema.optional<Schema.
|
|
2959
|
-
readonly functions: Schema.optional<Schema.
|
|
2960
|
-
readonly branches: Schema.optional<Schema.
|
|
2961
|
-
readonly statements: Schema.optional<Schema.
|
|
3082
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
3083
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
3084
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
3085
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
2962
3086
|
readonly perFile: Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
2963
|
-
readonly lines: Schema.optional<Schema.
|
|
2964
|
-
readonly functions: Schema.optional<Schema.
|
|
2965
|
-
readonly branches: Schema.optional<Schema.
|
|
2966
|
-
readonly statements: Schema.optional<Schema.
|
|
3087
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
3088
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
3089
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
3090
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
2967
3091
|
}>]>>;
|
|
2968
3092
|
}>]>>, never>;
|
|
2969
3093
|
}>>;
|
|
2970
3094
|
readonly scoped: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
2971
3095
|
readonly scopedFiles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
2972
|
-
readonly totalFiles: Schema.optional<Schema.
|
|
3096
|
+
readonly totalFiles: Schema.optional<Schema.Finite>;
|
|
2973
3097
|
readonly lowCoverage: Schema.$Array<Schema.Struct<{
|
|
2974
3098
|
readonly file: Schema.String;
|
|
2975
3099
|
readonly summary: Schema.Struct<{
|
|
2976
|
-
readonly statements: Schema.
|
|
2977
|
-
readonly branches: Schema.
|
|
2978
|
-
readonly functions: Schema.
|
|
2979
|
-
readonly lines: Schema.
|
|
3100
|
+
readonly statements: Schema.Finite;
|
|
3101
|
+
readonly branches: Schema.Finite;
|
|
3102
|
+
readonly functions: Schema.Finite;
|
|
3103
|
+
readonly lines: Schema.Finite;
|
|
2980
3104
|
}>;
|
|
2981
3105
|
readonly uncoveredLines: Schema.String;
|
|
2982
3106
|
}>>;
|
|
@@ -2984,10 +3108,10 @@ export declare const RunReportFile: Schema.Struct<{
|
|
|
2984
3108
|
readonly belowTarget: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2985
3109
|
readonly file: Schema.String;
|
|
2986
3110
|
readonly summary: Schema.Struct<{
|
|
2987
|
-
readonly statements: Schema.
|
|
2988
|
-
readonly branches: Schema.
|
|
2989
|
-
readonly functions: Schema.
|
|
2990
|
-
readonly lines: Schema.
|
|
3111
|
+
readonly statements: Schema.Finite;
|
|
3112
|
+
readonly branches: Schema.Finite;
|
|
3113
|
+
readonly functions: Schema.Finite;
|
|
3114
|
+
readonly lines: Schema.Finite;
|
|
2991
3115
|
}>;
|
|
2992
3116
|
readonly uncoveredLines: Schema.String;
|
|
2993
3117
|
}>>>;
|
|
@@ -2995,44 +3119,44 @@ export declare const RunReportFile: Schema.Struct<{
|
|
|
2995
3119
|
readonly globShortfalls: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
2996
3120
|
readonly pattern: Schema.String;
|
|
2997
3121
|
readonly summary: Schema.Struct<{
|
|
2998
|
-
readonly statements: Schema.
|
|
2999
|
-
readonly branches: Schema.
|
|
3000
|
-
readonly functions: Schema.
|
|
3001
|
-
readonly lines: Schema.
|
|
3122
|
+
readonly statements: Schema.Finite;
|
|
3123
|
+
readonly branches: Schema.Finite;
|
|
3124
|
+
readonly functions: Schema.Finite;
|
|
3125
|
+
readonly lines: Schema.Finite;
|
|
3002
3126
|
}>;
|
|
3003
3127
|
readonly thresholds: Schema.Struct<{
|
|
3004
|
-
readonly lines: Schema.optional<Schema.
|
|
3005
|
-
readonly functions: Schema.optional<Schema.
|
|
3006
|
-
readonly branches: Schema.optional<Schema.
|
|
3007
|
-
readonly statements: Schema.optional<Schema.
|
|
3128
|
+
readonly lines: Schema.optional<Schema.Finite>;
|
|
3129
|
+
readonly functions: Schema.optional<Schema.Finite>;
|
|
3130
|
+
readonly branches: Schema.optional<Schema.Finite>;
|
|
3131
|
+
readonly statements: Schema.optional<Schema.Finite>;
|
|
3008
3132
|
}>;
|
|
3009
3133
|
}>>>;
|
|
3010
3134
|
}>>;
|
|
3011
3135
|
readonly tagCounts: Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{
|
|
3012
|
-
readonly passed: Schema.optional<Schema.
|
|
3013
|
-
readonly failed: Schema.optional<Schema.
|
|
3014
|
-
readonly skipped: Schema.optional<Schema.
|
|
3136
|
+
readonly passed: Schema.optional<Schema.Finite>;
|
|
3137
|
+
readonly failed: Schema.optional<Schema.Finite>;
|
|
3138
|
+
readonly skipped: Schema.optional<Schema.Finite>;
|
|
3015
3139
|
}>>>;
|
|
3016
3140
|
readonly consoleLeaks: Schema.optional<Schema.Struct<{
|
|
3017
|
-
readonly total: Schema.
|
|
3141
|
+
readonly total: Schema.Finite;
|
|
3018
3142
|
readonly byFile: Schema.$Array<Schema.Struct<{
|
|
3019
3143
|
readonly file: Schema.String;
|
|
3020
|
-
readonly stdout: Schema.
|
|
3021
|
-
readonly stderr: Schema.
|
|
3144
|
+
readonly stdout: Schema.Finite;
|
|
3145
|
+
readonly stderr: Schema.Finite;
|
|
3022
3146
|
readonly tests: Schema.optional<Schema.$Array<Schema.String>>;
|
|
3023
3147
|
readonly sample: Schema.optional<Schema.String>;
|
|
3024
3148
|
}>>;
|
|
3025
3149
|
readonly truncated: Schema.optional<Schema.Boolean>;
|
|
3026
3150
|
readonly fromFailingTests: Schema.optional<Schema.Struct<{
|
|
3027
|
-
readonly total: Schema.
|
|
3028
|
-
readonly files: Schema.
|
|
3151
|
+
readonly total: Schema.Finite;
|
|
3152
|
+
readonly files: Schema.Finite;
|
|
3029
3153
|
}>>;
|
|
3030
3154
|
}>>;
|
|
3031
3155
|
readonly strayOutput: Schema.optional<Schema.Struct<{
|
|
3032
|
-
readonly total: Schema.
|
|
3033
|
-
readonly stdout: Schema.
|
|
3034
|
-
readonly stderr: Schema.
|
|
3035
|
-
readonly bytes: Schema.
|
|
3156
|
+
readonly total: Schema.Finite;
|
|
3157
|
+
readonly stdout: Schema.Finite;
|
|
3158
|
+
readonly stderr: Schema.Finite;
|
|
3159
|
+
readonly bytes: Schema.Finite;
|
|
3036
3160
|
readonly samples: Schema.$Array<Schema.Struct<{
|
|
3037
3161
|
readonly stream: Schema.Literals<readonly ["stdout", "stderr"]>;
|
|
3038
3162
|
readonly text: Schema.String;
|
|
@@ -3070,10 +3194,10 @@ export type StrayOutputSample = typeof StrayOutputSample.Type;
|
|
|
3070
3194
|
* @public
|
|
3071
3195
|
*/
|
|
3072
3196
|
export declare const StrayOutput: Schema.Struct<{
|
|
3073
|
-
readonly total: Schema.
|
|
3074
|
-
readonly stdout: Schema.
|
|
3075
|
-
readonly stderr: Schema.
|
|
3076
|
-
readonly bytes: Schema.
|
|
3197
|
+
readonly total: Schema.Finite;
|
|
3198
|
+
readonly stdout: Schema.Finite;
|
|
3199
|
+
readonly stderr: Schema.Finite;
|
|
3200
|
+
readonly bytes: Schema.Finite;
|
|
3077
3201
|
readonly samples: Schema.$Array<Schema.Struct<{
|
|
3078
3202
|
readonly stream: Schema.Literals<readonly ["stdout", "stderr"]>;
|
|
3079
3203
|
readonly text: Schema.String;
|
|
@@ -3254,16 +3378,16 @@ export type TestArtifact = typeof TestArtifact.Type;
|
|
|
3254
3378
|
export declare const TrendEntry: Schema.Struct<{
|
|
3255
3379
|
readonly timestamp: Schema.String;
|
|
3256
3380
|
readonly coverage: Schema.Struct<{
|
|
3257
|
-
readonly statements: Schema.
|
|
3258
|
-
readonly branches: Schema.
|
|
3259
|
-
readonly functions: Schema.
|
|
3260
|
-
readonly lines: Schema.
|
|
3381
|
+
readonly statements: Schema.Finite;
|
|
3382
|
+
readonly branches: Schema.Finite;
|
|
3383
|
+
readonly functions: Schema.Finite;
|
|
3384
|
+
readonly lines: Schema.Finite;
|
|
3261
3385
|
}>;
|
|
3262
3386
|
readonly delta: Schema.Struct<{
|
|
3263
|
-
readonly statements: Schema.
|
|
3264
|
-
readonly branches: Schema.
|
|
3265
|
-
readonly functions: Schema.
|
|
3266
|
-
readonly lines: Schema.
|
|
3387
|
+
readonly statements: Schema.Finite;
|
|
3388
|
+
readonly branches: Schema.Finite;
|
|
3389
|
+
readonly functions: Schema.Finite;
|
|
3390
|
+
readonly lines: Schema.Finite;
|
|
3267
3391
|
}>;
|
|
3268
3392
|
readonly direction: Schema.Literals<readonly ["improving", "regressing", "stable"]>;
|
|
3269
3393
|
readonly targetsHash: Schema.optional<Schema.String>;
|
|
@@ -3278,16 +3402,16 @@ export declare const TrendRecord: Schema.Struct<{
|
|
|
3278
3402
|
readonly entries: Schema.$Array<Schema.Struct<{
|
|
3279
3403
|
readonly timestamp: Schema.String;
|
|
3280
3404
|
readonly coverage: Schema.Struct<{
|
|
3281
|
-
readonly statements: Schema.
|
|
3282
|
-
readonly branches: Schema.
|
|
3283
|
-
readonly functions: Schema.
|
|
3284
|
-
readonly lines: Schema.
|
|
3405
|
+
readonly statements: Schema.Finite;
|
|
3406
|
+
readonly branches: Schema.Finite;
|
|
3407
|
+
readonly functions: Schema.Finite;
|
|
3408
|
+
readonly lines: Schema.Finite;
|
|
3285
3409
|
}>;
|
|
3286
3410
|
readonly delta: Schema.Struct<{
|
|
3287
|
-
readonly statements: Schema.
|
|
3288
|
-
readonly branches: Schema.
|
|
3289
|
-
readonly functions: Schema.
|
|
3290
|
-
readonly lines: Schema.
|
|
3411
|
+
readonly statements: Schema.Finite;
|
|
3412
|
+
readonly branches: Schema.Finite;
|
|
3413
|
+
readonly functions: Schema.Finite;
|
|
3414
|
+
readonly lines: Schema.Finite;
|
|
3291
3415
|
}>;
|
|
3292
3416
|
readonly direction: Schema.Literals<readonly ["improving", "regressing", "stable"]>;
|
|
3293
3417
|
readonly targetsHash: Schema.optional<Schema.String>;
|
|
@@ -3810,6 +3934,15 @@ export interface ConsoleLeakTask {
|
|
|
3810
3934
|
* @public
|
|
3811
3935
|
*/
|
|
3812
3936
|
export declare function collectConsoleLeakEntries(files: ReadonlyArray<ConsoleLeakTask>): ConsoleLeakEntry[];
|
|
3937
|
+
/**
|
|
3938
|
+
* The note a renderer prints for a run's console leaks: one line naming the
|
|
3939
|
+
* write count, the file count and the fix, then up to three files with
|
|
3940
|
+
* their stream split and sample, how many files it left out, and the output
|
|
3941
|
+
* from failing tests that the leak count excludes. Empty when the run has no
|
|
3942
|
+
* leak from a passing test (output from failing tests alone is not a leak).
|
|
3943
|
+
* @public
|
|
3944
|
+
*/
|
|
3945
|
+
export declare const formatConsoleLeaksNote: (leaks: ConsoleLeaks) => ReadonlyArray<string>;
|
|
3813
3946
|
/**
|
|
3814
3947
|
* Lexically detects whether a Vitest/Vite config source text appears to
|
|
3815
3948
|
* configure a non-default `DiscoverStrategy` — a custom `discoverStrategy`
|
|
@@ -4055,12 +4188,6 @@ export interface FunctionBoundary {
|
|
|
4055
4188
|
* @public
|
|
4056
4189
|
*/
|
|
4057
4190
|
export declare const findFunctionBoundary: (source: string, line: number) => FunctionBoundary | null;
|
|
4058
|
-
/** @public */
|
|
4059
|
-
export interface Osc8Options {
|
|
4060
|
-
readonly enabled: boolean;
|
|
4061
|
-
}
|
|
4062
|
-
/** @public */
|
|
4063
|
-
export declare const osc8: (url: string, label: string, options: Osc8Options) => string;
|
|
4064
4191
|
/**
|
|
4065
4192
|
* Return `true` if the command invokes Vitest in any of the five
|
|
4066
4193
|
* supported shapes. The `vitestScripts` set carries the names of
|