@vitest-agent/ui 1.1.2 → 2.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/index.d.ts +543 -542
- package/index.js +3 -3
- package/package.json +5 -4
- package/pubsub/Channel.js +2 -2
- package/pubsub/Subscriber.js +5 -5
- package/synthesize.js +36 -2
- package/tsdoc-metadata.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Context, Effect, Layer, PubSub,
|
|
2
|
-
import "@
|
|
3
|
-
import "
|
|
4
|
-
import "@
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
1
|
+
import { Context, Effect, Layer, PubSub, Schema, Scope, Stream } from "effect";
|
|
2
|
+
import "@effected/config-file";
|
|
3
|
+
import "effect/unstable/sql/SqlClient";
|
|
4
|
+
import "@effected/workspaces";
|
|
5
|
+
import "@effected/xdg";
|
|
6
|
+
import "effect/unstable/process";
|
|
7
7
|
import { FC, ReactElement } from "react";
|
|
8
8
|
//#region ../sdk/dist/dev/pkg/index.d.ts
|
|
9
9
|
//#region src/schemas/Coverage.d.ts
|
|
@@ -12,10 +12,10 @@ import { FC, ReactElement } from "react";
|
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
14
|
declare const CoverageTotals: Schema.Struct<{
|
|
15
|
-
statements:
|
|
16
|
-
branches:
|
|
17
|
-
functions:
|
|
18
|
-
lines:
|
|
15
|
+
readonly statements: Schema.Number;
|
|
16
|
+
readonly branches: Schema.Number;
|
|
17
|
+
readonly functions: Schema.Number;
|
|
18
|
+
readonly lines: Schema.Number;
|
|
19
19
|
}>;
|
|
20
20
|
/** @public */
|
|
21
21
|
type CoverageTotals = typeof CoverageTotals.Type;
|
|
@@ -24,14 +24,14 @@ type CoverageTotals = typeof CoverageTotals.Type;
|
|
|
24
24
|
* @public
|
|
25
25
|
*/
|
|
26
26
|
declare const FileCoverageReport: Schema.Struct<{
|
|
27
|
-
file:
|
|
28
|
-
summary: Schema.Struct<{
|
|
29
|
-
statements:
|
|
30
|
-
branches:
|
|
31
|
-
functions:
|
|
32
|
-
lines:
|
|
27
|
+
readonly file: Schema.String;
|
|
28
|
+
readonly summary: Schema.Struct<{
|
|
29
|
+
readonly statements: Schema.Number;
|
|
30
|
+
readonly branches: Schema.Number;
|
|
31
|
+
readonly functions: Schema.Number;
|
|
32
|
+
readonly lines: Schema.Number;
|
|
33
33
|
}>;
|
|
34
|
-
uncoveredLines:
|
|
34
|
+
readonly uncoveredLines: Schema.String;
|
|
35
35
|
}>;
|
|
36
36
|
/** @public */
|
|
37
37
|
type FileCoverageReport = typeof FileCoverageReport.Type;
|
|
@@ -42,16 +42,16 @@ type FileCoverageReport = typeof FileCoverageReport.Type;
|
|
|
42
42
|
* @public
|
|
43
43
|
*/
|
|
44
44
|
declare const TestRecord: Schema.Struct<{
|
|
45
|
-
testName:
|
|
46
|
-
suitePath: Schema
|
|
47
|
-
status: Schema.Union<[Schema.
|
|
48
|
-
durationMs: Schema.NullOr<
|
|
49
|
-
error: Schema.optional<Schema.Struct<{
|
|
50
|
-
message:
|
|
51
|
-
stack: Schema.optional<
|
|
52
|
-
diff: Schema.optional<
|
|
53
|
-
expected: Schema.optional<
|
|
54
|
-
received: Schema.optional<
|
|
45
|
+
readonly testName: Schema.String;
|
|
46
|
+
readonly suitePath: Schema.$Array<Schema.String>;
|
|
47
|
+
readonly status: Schema.Union<readonly [Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>, Schema.Literals<readonly ["running", "timed-out"]>]>;
|
|
48
|
+
readonly durationMs: Schema.NullOr<Schema.Number>;
|
|
49
|
+
readonly error: Schema.optional<Schema.Struct<{
|
|
50
|
+
readonly message: Schema.String;
|
|
51
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
52
|
+
readonly diff: Schema.optional<Schema.String>;
|
|
53
|
+
readonly expected: Schema.optional<Schema.String>;
|
|
54
|
+
readonly received: Schema.optional<Schema.String>;
|
|
55
55
|
}>>;
|
|
56
56
|
}>;
|
|
57
57
|
/** @public */
|
|
@@ -62,24 +62,24 @@ type TestRecord = typeof TestRecord.Type;
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
declare const ModuleRecord: Schema.Struct<{
|
|
65
|
-
modulePath:
|
|
66
|
-
status: Schema.
|
|
67
|
-
passCount:
|
|
68
|
-
failCount:
|
|
69
|
-
skipCount:
|
|
70
|
-
timeoutCount:
|
|
71
|
-
durationMs:
|
|
72
|
-
tests: Schema
|
|
73
|
-
testName:
|
|
74
|
-
suitePath: Schema
|
|
75
|
-
status: Schema.Union<[Schema.
|
|
76
|
-
durationMs: Schema.NullOr<
|
|
77
|
-
error: Schema.optional<Schema.Struct<{
|
|
78
|
-
message:
|
|
79
|
-
stack: Schema.optional<
|
|
80
|
-
diff: Schema.optional<
|
|
81
|
-
expected: Schema.optional<
|
|
82
|
-
received: Schema.optional<
|
|
65
|
+
readonly modulePath: Schema.String;
|
|
66
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "finished"]>;
|
|
67
|
+
readonly passCount: Schema.Number;
|
|
68
|
+
readonly failCount: Schema.Number;
|
|
69
|
+
readonly skipCount: Schema.Number;
|
|
70
|
+
readonly timeoutCount: Schema.Number;
|
|
71
|
+
readonly durationMs: Schema.Number;
|
|
72
|
+
readonly tests: Schema.$Array<Schema.Struct<{
|
|
73
|
+
readonly testName: Schema.String;
|
|
74
|
+
readonly suitePath: Schema.$Array<Schema.String>;
|
|
75
|
+
readonly status: Schema.Union<readonly [Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>, Schema.Literals<readonly ["running", "timed-out"]>]>;
|
|
76
|
+
readonly durationMs: Schema.NullOr<Schema.Number>;
|
|
77
|
+
readonly error: Schema.optional<Schema.Struct<{
|
|
78
|
+
readonly message: Schema.String;
|
|
79
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
80
|
+
readonly diff: Schema.optional<Schema.String>;
|
|
81
|
+
readonly expected: Schema.optional<Schema.String>;
|
|
82
|
+
readonly received: Schema.optional<Schema.String>;
|
|
83
83
|
}>>;
|
|
84
84
|
}>>;
|
|
85
85
|
/**
|
|
@@ -87,15 +87,15 @@ declare const ModuleRecord: Schema.Struct<{
|
|
|
87
87
|
* configs or older replays leave it `undefined`, which the renderer
|
|
88
88
|
* treats as a single anonymous project.
|
|
89
89
|
*/
|
|
90
|
-
projectName: Schema.optional<
|
|
90
|
+
readonly projectName: Schema.optional<Schema.String>;
|
|
91
91
|
/**
|
|
92
92
|
* ISO wall-clock stamp captured at `onTestModuleStart`. The live
|
|
93
93
|
* renderer derives a ticking elapsed column from it while the module
|
|
94
94
|
* runs; once finished it shows `durationMs` instead. Optional — a
|
|
95
95
|
* module seeded by `ModuleQueued` (or replayed) has no start stamp.
|
|
96
96
|
*/
|
|
97
|
-
startedAt: Schema.optional<
|
|
98
|
-
tagCounts: Schema.optional<Schema
|
|
97
|
+
readonly startedAt: Schema.optional<Schema.String>;
|
|
98
|
+
readonly tagCounts: Schema.optional<Schema.$Record<Schema.String, Schema.Number>>;
|
|
99
99
|
}>;
|
|
100
100
|
/** @public */
|
|
101
101
|
type ModuleRecord = typeof ModuleRecord.Type;
|
|
@@ -106,18 +106,18 @@ type ModuleRecord = typeof ModuleRecord.Type;
|
|
|
106
106
|
* @public
|
|
107
107
|
*/
|
|
108
108
|
declare const FailureRecord: Schema.Struct<{
|
|
109
|
-
modulePath:
|
|
110
|
-
testName:
|
|
111
|
-
suitePath: Schema
|
|
112
|
-
error: Schema.optional<Schema.Struct<{
|
|
113
|
-
message:
|
|
114
|
-
stack: Schema.optional<
|
|
115
|
-
diff: Schema.optional<
|
|
116
|
-
expected: Schema.optional<
|
|
117
|
-
received: Schema.optional<
|
|
109
|
+
readonly modulePath: Schema.String;
|
|
110
|
+
readonly testName: Schema.String;
|
|
111
|
+
readonly suitePath: Schema.$Array<Schema.String>;
|
|
112
|
+
readonly error: Schema.optional<Schema.Struct<{
|
|
113
|
+
readonly message: Schema.String;
|
|
114
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
115
|
+
readonly diff: Schema.optional<Schema.String>;
|
|
116
|
+
readonly expected: Schema.optional<Schema.String>;
|
|
117
|
+
readonly received: Schema.optional<Schema.String>;
|
|
118
118
|
}>>;
|
|
119
|
-
timedOut: Schema.optional<
|
|
120
|
-
classification: Schema.NullOr<Schema.
|
|
119
|
+
readonly timedOut: Schema.optional<Schema.Boolean>;
|
|
120
|
+
readonly classification: Schema.NullOr<Schema.Literals<readonly ["stable", "new-failure", "persistent", "flaky", "recovered"]>>;
|
|
121
121
|
}>;
|
|
122
122
|
/** @public */
|
|
123
123
|
type FailureRecord = typeof FailureRecord.Type;
|
|
@@ -127,32 +127,32 @@ type FailureRecord = typeof FailureRecord.Type;
|
|
|
127
127
|
* @public
|
|
128
128
|
*/
|
|
129
129
|
declare const CoverageRenderState: Schema.Struct<{
|
|
130
|
-
metrics: Schema.Struct<{
|
|
131
|
-
statements:
|
|
132
|
-
branches:
|
|
133
|
-
functions:
|
|
134
|
-
lines:
|
|
130
|
+
readonly metrics: Schema.Struct<{
|
|
131
|
+
readonly statements: Schema.Number;
|
|
132
|
+
readonly branches: Schema.Number;
|
|
133
|
+
readonly functions: Schema.Number;
|
|
134
|
+
readonly lines: Schema.Number;
|
|
135
135
|
}>;
|
|
136
|
-
thresholds: Schema.Struct<{
|
|
137
|
-
lines: Schema.optional<
|
|
138
|
-
functions: Schema.optional<
|
|
139
|
-
branches: Schema.optional<
|
|
140
|
-
statements: Schema.optional<
|
|
136
|
+
readonly thresholds: Schema.Struct<{
|
|
137
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
138
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
139
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
140
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
141
141
|
}>;
|
|
142
|
-
gaps: Schema
|
|
143
|
-
file:
|
|
144
|
-
missing: Schema.Struct<{
|
|
145
|
-
statements:
|
|
146
|
-
branches:
|
|
147
|
-
functions:
|
|
148
|
-
lines:
|
|
142
|
+
readonly gaps: Schema.$Array<Schema.Struct<{
|
|
143
|
+
readonly file: Schema.String;
|
|
144
|
+
readonly missing: Schema.Struct<{
|
|
145
|
+
readonly statements: Schema.Number;
|
|
146
|
+
readonly branches: Schema.Number;
|
|
147
|
+
readonly functions: Schema.Number;
|
|
148
|
+
readonly lines: Schema.Number;
|
|
149
149
|
}>;
|
|
150
|
-
uncoveredLines: Schema.optional<
|
|
150
|
+
readonly uncoveredLines: Schema.optional<Schema.String>;
|
|
151
151
|
}>>;
|
|
152
|
-
violations: Schema
|
|
153
|
-
metric: Schema.
|
|
154
|
-
expected:
|
|
155
|
-
actual:
|
|
152
|
+
readonly violations: Schema.$Array<Schema.Struct<{
|
|
153
|
+
readonly metric: Schema.Literals<readonly ["lines", "branches", "functions", "statements"]>;
|
|
154
|
+
readonly expected: Schema.Number;
|
|
155
|
+
readonly actual: Schema.Number;
|
|
156
156
|
}>>;
|
|
157
157
|
}>;
|
|
158
158
|
/** @public */
|
|
@@ -162,10 +162,10 @@ type CoverageRenderState = typeof CoverageRenderState.Type;
|
|
|
162
162
|
* @public
|
|
163
163
|
*/
|
|
164
164
|
declare const SuggestedActionRecord: Schema.Struct<{
|
|
165
|
-
severity: Schema.
|
|
166
|
-
title:
|
|
167
|
-
detail:
|
|
168
|
-
targetTool: Schema.optional<
|
|
165
|
+
readonly severity: Schema.Literals<readonly ["info", "warn", "blocker"]>;
|
|
166
|
+
readonly title: Schema.String;
|
|
167
|
+
readonly detail: Schema.String;
|
|
168
|
+
readonly targetTool: Schema.optional<Schema.String>;
|
|
169
169
|
}>;
|
|
170
170
|
/** @public */
|
|
171
171
|
type SuggestedActionRecord = typeof SuggestedActionRecord.Type;
|
|
@@ -175,11 +175,11 @@ type SuggestedActionRecord = typeof SuggestedActionRecord.Type;
|
|
|
175
175
|
* @public
|
|
176
176
|
*/
|
|
177
177
|
declare const RenderTotals: Schema.Struct<{
|
|
178
|
-
passCount:
|
|
179
|
-
failCount:
|
|
180
|
-
skipCount:
|
|
181
|
-
timeoutCount:
|
|
182
|
-
durationMs:
|
|
178
|
+
readonly passCount: Schema.Number;
|
|
179
|
+
readonly failCount: Schema.Number;
|
|
180
|
+
readonly skipCount: Schema.Number;
|
|
181
|
+
readonly timeoutCount: Schema.Number;
|
|
182
|
+
readonly durationMs: Schema.Number;
|
|
183
183
|
}>;
|
|
184
184
|
/** @public */
|
|
185
185
|
type RenderTotals = typeof RenderTotals.Type;
|
|
@@ -195,30 +195,30 @@ type RenderTotals = typeof RenderTotals.Type;
|
|
|
195
195
|
* @public
|
|
196
196
|
*/
|
|
197
197
|
declare const RenderState: Schema.Struct<{
|
|
198
|
-
phase: Schema.
|
|
199
|
-
runId: Schema.NullOr<
|
|
200
|
-
configHash: Schema.NullOr<
|
|
201
|
-
startedAt: Schema.NullOr<
|
|
202
|
-
finishedAt: Schema.NullOr<
|
|
203
|
-
modules: Schema
|
|
204
|
-
modulePath:
|
|
205
|
-
status: Schema.
|
|
206
|
-
passCount:
|
|
207
|
-
failCount:
|
|
208
|
-
skipCount:
|
|
209
|
-
timeoutCount:
|
|
210
|
-
durationMs:
|
|
211
|
-
tests: Schema
|
|
212
|
-
testName:
|
|
213
|
-
suitePath: Schema
|
|
214
|
-
status: Schema.Union<[Schema.
|
|
215
|
-
durationMs: Schema.NullOr<
|
|
216
|
-
error: Schema.optional<Schema.Struct<{
|
|
217
|
-
message:
|
|
218
|
-
stack: Schema.optional<
|
|
219
|
-
diff: Schema.optional<
|
|
220
|
-
expected: Schema.optional<
|
|
221
|
-
received: Schema.optional<
|
|
198
|
+
readonly phase: Schema.Literals<readonly ["idle", "running", "finished", "timed-out"]>;
|
|
199
|
+
readonly runId: Schema.NullOr<Schema.String>;
|
|
200
|
+
readonly configHash: Schema.NullOr<Schema.String>;
|
|
201
|
+
readonly startedAt: Schema.NullOr<Schema.String>;
|
|
202
|
+
readonly finishedAt: Schema.NullOr<Schema.String>;
|
|
203
|
+
readonly modules: Schema.$Record<Schema.String, Schema.Struct<{
|
|
204
|
+
readonly modulePath: Schema.String;
|
|
205
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "finished"]>;
|
|
206
|
+
readonly passCount: Schema.Number;
|
|
207
|
+
readonly failCount: Schema.Number;
|
|
208
|
+
readonly skipCount: Schema.Number;
|
|
209
|
+
readonly timeoutCount: Schema.Number;
|
|
210
|
+
readonly durationMs: Schema.Number;
|
|
211
|
+
readonly tests: Schema.$Array<Schema.Struct<{
|
|
212
|
+
readonly testName: Schema.String;
|
|
213
|
+
readonly suitePath: Schema.$Array<Schema.String>;
|
|
214
|
+
readonly status: Schema.Union<readonly [Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>, Schema.Literals<readonly ["running", "timed-out"]>]>;
|
|
215
|
+
readonly durationMs: Schema.NullOr<Schema.Number>;
|
|
216
|
+
readonly error: Schema.optional<Schema.Struct<{
|
|
217
|
+
readonly message: Schema.String;
|
|
218
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
219
|
+
readonly diff: Schema.optional<Schema.String>;
|
|
220
|
+
readonly expected: Schema.optional<Schema.String>;
|
|
221
|
+
readonly received: Schema.optional<Schema.String>;
|
|
222
222
|
}>>;
|
|
223
223
|
}>>;
|
|
224
224
|
/**
|
|
@@ -226,76 +226,76 @@ declare const RenderState: Schema.Struct<{
|
|
|
226
226
|
* configs or older replays leave it `undefined`, which the renderer
|
|
227
227
|
* treats as a single anonymous project.
|
|
228
228
|
*/
|
|
229
|
-
projectName: Schema.optional<
|
|
229
|
+
readonly projectName: Schema.optional<Schema.String>;
|
|
230
230
|
/**
|
|
231
231
|
* ISO wall-clock stamp captured at `onTestModuleStart`. The live
|
|
232
232
|
* renderer derives a ticking elapsed column from it while the module
|
|
233
233
|
* runs; once finished it shows `durationMs` instead. Optional — a
|
|
234
234
|
* module seeded by `ModuleQueued` (or replayed) has no start stamp.
|
|
235
235
|
*/
|
|
236
|
-
startedAt: Schema.optional<
|
|
237
|
-
tagCounts: Schema.optional<Schema
|
|
236
|
+
readonly startedAt: Schema.optional<Schema.String>;
|
|
237
|
+
readonly tagCounts: Schema.optional<Schema.$Record<Schema.String, Schema.Number>>;
|
|
238
238
|
}>>;
|
|
239
|
-
moduleOrder: Schema
|
|
240
|
-
totals: Schema.Struct<{
|
|
241
|
-
passCount:
|
|
242
|
-
failCount:
|
|
243
|
-
skipCount:
|
|
244
|
-
timeoutCount:
|
|
245
|
-
durationMs:
|
|
239
|
+
readonly moduleOrder: Schema.$Array<Schema.String>;
|
|
240
|
+
readonly totals: Schema.Struct<{
|
|
241
|
+
readonly passCount: Schema.Number;
|
|
242
|
+
readonly failCount: Schema.Number;
|
|
243
|
+
readonly skipCount: Schema.Number;
|
|
244
|
+
readonly timeoutCount: Schema.Number;
|
|
245
|
+
readonly durationMs: Schema.Number;
|
|
246
246
|
}>;
|
|
247
|
-
coverage: Schema.NullOr<Schema.Struct<{
|
|
248
|
-
metrics: Schema.Struct<{
|
|
249
|
-
statements:
|
|
250
|
-
branches:
|
|
251
|
-
functions:
|
|
252
|
-
lines:
|
|
247
|
+
readonly coverage: Schema.NullOr<Schema.Struct<{
|
|
248
|
+
readonly metrics: Schema.Struct<{
|
|
249
|
+
readonly statements: Schema.Number;
|
|
250
|
+
readonly branches: Schema.Number;
|
|
251
|
+
readonly functions: Schema.Number;
|
|
252
|
+
readonly lines: Schema.Number;
|
|
253
253
|
}>;
|
|
254
|
-
thresholds: Schema.Struct<{
|
|
255
|
-
lines: Schema.optional<
|
|
256
|
-
functions: Schema.optional<
|
|
257
|
-
branches: Schema.optional<
|
|
258
|
-
statements: Schema.optional<
|
|
254
|
+
readonly thresholds: Schema.Struct<{
|
|
255
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
256
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
257
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
258
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
259
259
|
}>;
|
|
260
|
-
gaps: Schema
|
|
261
|
-
file:
|
|
262
|
-
missing: Schema.Struct<{
|
|
263
|
-
statements:
|
|
264
|
-
branches:
|
|
265
|
-
functions:
|
|
266
|
-
lines:
|
|
260
|
+
readonly gaps: Schema.$Array<Schema.Struct<{
|
|
261
|
+
readonly file: Schema.String;
|
|
262
|
+
readonly missing: Schema.Struct<{
|
|
263
|
+
readonly statements: Schema.Number;
|
|
264
|
+
readonly branches: Schema.Number;
|
|
265
|
+
readonly functions: Schema.Number;
|
|
266
|
+
readonly lines: Schema.Number;
|
|
267
267
|
}>;
|
|
268
|
-
uncoveredLines: Schema.optional<
|
|
268
|
+
readonly uncoveredLines: Schema.optional<Schema.String>;
|
|
269
269
|
}>>;
|
|
270
|
-
violations: Schema
|
|
271
|
-
metric: Schema.
|
|
272
|
-
expected:
|
|
273
|
-
actual:
|
|
270
|
+
readonly violations: Schema.$Array<Schema.Struct<{
|
|
271
|
+
readonly metric: Schema.Literals<readonly ["lines", "branches", "functions", "statements"]>;
|
|
272
|
+
readonly expected: Schema.Number;
|
|
273
|
+
readonly actual: Schema.Number;
|
|
274
274
|
}>>;
|
|
275
275
|
}>>;
|
|
276
|
-
trend: Schema.NullOr<Schema.Struct<{
|
|
277
|
-
direction: Schema.
|
|
278
|
-
runCount:
|
|
276
|
+
readonly trend: Schema.NullOr<Schema.Struct<{
|
|
277
|
+
readonly direction: Schema.Literals<readonly ["improving", "regressing", "stable"]>;
|
|
278
|
+
readonly runCount: Schema.Number;
|
|
279
279
|
}>>;
|
|
280
|
-
failures: Schema
|
|
281
|
-
modulePath:
|
|
282
|
-
testName:
|
|
283
|
-
suitePath: Schema
|
|
284
|
-
error: Schema.optional<Schema.Struct<{
|
|
285
|
-
message:
|
|
286
|
-
stack: Schema.optional<
|
|
287
|
-
diff: Schema.optional<
|
|
288
|
-
expected: Schema.optional<
|
|
289
|
-
received: Schema.optional<
|
|
280
|
+
readonly failures: Schema.$Array<Schema.Struct<{
|
|
281
|
+
readonly modulePath: Schema.String;
|
|
282
|
+
readonly testName: Schema.String;
|
|
283
|
+
readonly suitePath: Schema.$Array<Schema.String>;
|
|
284
|
+
readonly error: Schema.optional<Schema.Struct<{
|
|
285
|
+
readonly message: Schema.String;
|
|
286
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
287
|
+
readonly diff: Schema.optional<Schema.String>;
|
|
288
|
+
readonly expected: Schema.optional<Schema.String>;
|
|
289
|
+
readonly received: Schema.optional<Schema.String>;
|
|
290
290
|
}>>;
|
|
291
|
-
timedOut: Schema.optional<
|
|
292
|
-
classification: Schema.NullOr<Schema.
|
|
291
|
+
readonly timedOut: Schema.optional<Schema.Boolean>;
|
|
292
|
+
readonly classification: Schema.NullOr<Schema.Literals<readonly ["stable", "new-failure", "persistent", "flaky", "recovered"]>>;
|
|
293
293
|
}>>;
|
|
294
|
-
suggestedActions: Schema
|
|
295
|
-
severity: Schema.
|
|
296
|
-
title:
|
|
297
|
-
detail:
|
|
298
|
-
targetTool: Schema.optional<
|
|
294
|
+
readonly suggestedActions: Schema.$Array<Schema.Struct<{
|
|
295
|
+
readonly severity: Schema.Literals<readonly ["info", "warn", "blocker"]>;
|
|
296
|
+
readonly title: Schema.String;
|
|
297
|
+
readonly detail: Schema.String;
|
|
298
|
+
readonly targetTool: Schema.optional<Schema.String>;
|
|
299
299
|
}>>;
|
|
300
300
|
}>;
|
|
301
301
|
/** @public */
|
|
@@ -434,149 +434,141 @@ interface CellOptions {
|
|
|
434
434
|
* @public
|
|
435
435
|
*/
|
|
436
436
|
declare const AgentReport: Schema.Struct<{
|
|
437
|
-
timestamp:
|
|
438
|
-
project: Schema.optional<
|
|
439
|
-
reason: Schema.
|
|
440
|
-
summary: Schema.Struct<{
|
|
441
|
-
total:
|
|
442
|
-
passed:
|
|
443
|
-
failed:
|
|
444
|
-
skipped:
|
|
445
|
-
duration:
|
|
437
|
+
readonly timestamp: Schema.String;
|
|
438
|
+
readonly project: Schema.optional<Schema.String>;
|
|
439
|
+
readonly reason: Schema.Literals<readonly ["passed", "failed", "interrupted"]>;
|
|
440
|
+
readonly summary: Schema.Struct<{
|
|
441
|
+
readonly total: Schema.Number;
|
|
442
|
+
readonly passed: Schema.Number;
|
|
443
|
+
readonly failed: Schema.Number;
|
|
444
|
+
readonly skipped: Schema.Number;
|
|
445
|
+
readonly duration: Schema.Number;
|
|
446
446
|
}>;
|
|
447
|
-
failed: Schema
|
|
448
|
-
file:
|
|
449
|
-
state: Schema.
|
|
450
|
-
duration: Schema.optional<
|
|
451
|
-
errors: Schema.optional<Schema
|
|
452
|
-
message:
|
|
453
|
-
stack: Schema.optional<
|
|
454
|
-
diff: Schema.optional<
|
|
455
|
-
expected: Schema.optional<
|
|
456
|
-
received: Schema.optional<
|
|
447
|
+
readonly failed: Schema.$Array<Schema.Struct<{
|
|
448
|
+
readonly file: Schema.String;
|
|
449
|
+
readonly state: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
|
|
450
|
+
readonly duration: Schema.optional<Schema.Number>;
|
|
451
|
+
readonly errors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
452
|
+
readonly message: Schema.String;
|
|
453
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
454
|
+
readonly diff: Schema.optional<Schema.String>;
|
|
455
|
+
readonly expected: Schema.optional<Schema.String>;
|
|
456
|
+
readonly received: Schema.optional<Schema.String>;
|
|
457
457
|
}>>>;
|
|
458
|
-
tests: Schema
|
|
459
|
-
name:
|
|
460
|
-
fullName:
|
|
461
|
-
state: Schema.
|
|
462
|
-
duration: Schema.optional<
|
|
463
|
-
flaky: Schema.optional<
|
|
464
|
-
slow: Schema.optional<
|
|
465
|
-
errors: Schema.optional<Schema
|
|
466
|
-
message:
|
|
467
|
-
stack: Schema.optional<
|
|
468
|
-
diff: Schema.optional<
|
|
469
|
-
expected: Schema.optional<
|
|
470
|
-
received: Schema.optional<
|
|
458
|
+
readonly tests: Schema.$Array<Schema.Struct<{
|
|
459
|
+
readonly name: Schema.String;
|
|
460
|
+
readonly fullName: Schema.String;
|
|
461
|
+
readonly state: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
|
|
462
|
+
readonly duration: Schema.optional<Schema.Number>;
|
|
463
|
+
readonly flaky: Schema.optional<Schema.Boolean>;
|
|
464
|
+
readonly slow: Schema.optional<Schema.Boolean>;
|
|
465
|
+
readonly errors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
466
|
+
readonly message: Schema.String;
|
|
467
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
468
|
+
readonly diff: Schema.optional<Schema.String>;
|
|
469
|
+
readonly expected: Schema.optional<Schema.String>;
|
|
470
|
+
readonly received: Schema.optional<Schema.String>;
|
|
471
471
|
}>>>;
|
|
472
|
-
classification: Schema.optional<Schema.
|
|
472
|
+
readonly classification: Schema.optional<Schema.Literals<readonly ["stable", "new-failure", "persistent", "flaky", "recovered"]>>;
|
|
473
473
|
}>>;
|
|
474
474
|
}>>;
|
|
475
|
-
unhandledErrors: Schema
|
|
476
|
-
message:
|
|
477
|
-
stack: Schema.optional<
|
|
478
|
-
diff: Schema.optional<
|
|
479
|
-
expected: Schema.optional<
|
|
480
|
-
received: Schema.optional<
|
|
475
|
+
readonly unhandledErrors: Schema.$Array<Schema.Struct<{
|
|
476
|
+
readonly message: Schema.String;
|
|
477
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
478
|
+
readonly diff: Schema.optional<Schema.String>;
|
|
479
|
+
readonly expected: Schema.optional<Schema.String>;
|
|
480
|
+
readonly received: Schema.optional<Schema.String>;
|
|
481
481
|
}>>;
|
|
482
|
-
failedFiles: Schema
|
|
483
|
-
coverage: Schema.optional<Schema.Struct<{
|
|
484
|
-
totals: Schema.Struct<{
|
|
485
|
-
statements:
|
|
486
|
-
branches:
|
|
487
|
-
functions:
|
|
488
|
-
lines:
|
|
482
|
+
readonly failedFiles: Schema.$Array<Schema.String>;
|
|
483
|
+
readonly coverage: Schema.optional<Schema.Struct<{
|
|
484
|
+
readonly totals: Schema.Struct<{
|
|
485
|
+
readonly statements: Schema.Number;
|
|
486
|
+
readonly branches: Schema.Number;
|
|
487
|
+
readonly functions: Schema.Number;
|
|
488
|
+
readonly lines: Schema.Number;
|
|
489
489
|
}>;
|
|
490
|
-
thresholds: Schema.Struct<{
|
|
491
|
-
global: Schema.Struct<{
|
|
492
|
-
lines: Schema.optional<
|
|
493
|
-
functions: Schema.optional<
|
|
494
|
-
branches: Schema.optional<
|
|
495
|
-
statements: Schema.optional<
|
|
496
|
-
}>;
|
|
497
|
-
patterns: Schema.optionalWith<Schema.Array$<Schema.Tuple2<typeof Schema.String, Schema.Struct<{
|
|
498
|
-
lines: Schema.optional<typeof Schema.Number>;
|
|
499
|
-
functions: Schema.optional<typeof Schema.Number>;
|
|
500
|
-
branches: Schema.optional<typeof Schema.Number>;
|
|
501
|
-
statements: Schema.optional<typeof Schema.Number>;
|
|
502
|
-
}>>>, {
|
|
503
|
-
default: () => never[];
|
|
490
|
+
readonly thresholds: Schema.Struct<{
|
|
491
|
+
readonly global: Schema.Struct<{
|
|
492
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
493
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
494
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
495
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
504
496
|
}>;
|
|
497
|
+
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
498
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
499
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
500
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
501
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
502
|
+
}>]>>, never>;
|
|
505
503
|
}>;
|
|
506
|
-
targets: Schema.optional<Schema.Struct<{
|
|
507
|
-
global: Schema.Struct<{
|
|
508
|
-
lines: Schema.optional<
|
|
509
|
-
functions: Schema.optional<
|
|
510
|
-
branches: Schema.optional<
|
|
511
|
-
statements: Schema.optional<
|
|
512
|
-
}>;
|
|
513
|
-
patterns: Schema.optionalWith<Schema.Array$<Schema.Tuple2<typeof Schema.String, Schema.Struct<{
|
|
514
|
-
lines: Schema.optional<typeof Schema.Number>;
|
|
515
|
-
functions: Schema.optional<typeof Schema.Number>;
|
|
516
|
-
branches: Schema.optional<typeof Schema.Number>;
|
|
517
|
-
statements: Schema.optional<typeof Schema.Number>;
|
|
518
|
-
}>>>, {
|
|
519
|
-
default: () => never[];
|
|
504
|
+
readonly targets: Schema.optional<Schema.Struct<{
|
|
505
|
+
readonly global: Schema.Struct<{
|
|
506
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
507
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
508
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
509
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
520
510
|
}>;
|
|
511
|
+
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
512
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
513
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
514
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
515
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
516
|
+
}>]>>, never>;
|
|
521
517
|
}>>;
|
|
522
|
-
baselines: Schema.optional<Schema.Struct<{
|
|
523
|
-
global: Schema.Struct<{
|
|
524
|
-
lines: Schema.optional<
|
|
525
|
-
functions: Schema.optional<
|
|
526
|
-
branches: Schema.optional<
|
|
527
|
-
statements: Schema.optional<
|
|
528
|
-
}>;
|
|
529
|
-
patterns: Schema.optionalWith<Schema.Array$<Schema.Tuple2<typeof Schema.String, Schema.Struct<{
|
|
530
|
-
lines: Schema.optional<typeof Schema.Number>;
|
|
531
|
-
functions: Schema.optional<typeof Schema.Number>;
|
|
532
|
-
branches: Schema.optional<typeof Schema.Number>;
|
|
533
|
-
statements: Schema.optional<typeof Schema.Number>;
|
|
534
|
-
}>>>, {
|
|
535
|
-
default: () => never[];
|
|
518
|
+
readonly baselines: Schema.optional<Schema.Struct<{
|
|
519
|
+
readonly global: Schema.Struct<{
|
|
520
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
521
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
522
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
523
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
536
524
|
}>;
|
|
525
|
+
readonly patterns: Schema.withDecodingDefaultKey<Schema.$Array<Schema.Tuple<readonly [Schema.String, Schema.Struct<{
|
|
526
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
527
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
528
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
529
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
530
|
+
}>]>>, never>;
|
|
537
531
|
}>>;
|
|
538
|
-
scoped: Schema.
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
functions: typeof Schema.Number;
|
|
548
|
-
lines: typeof Schema.Number;
|
|
532
|
+
readonly scoped: Schema.withDecodingDefaultKey<Schema.Boolean, never>;
|
|
533
|
+
readonly scopedFiles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
534
|
+
readonly lowCoverage: Schema.$Array<Schema.Struct<{
|
|
535
|
+
readonly file: Schema.String;
|
|
536
|
+
readonly summary: Schema.Struct<{
|
|
537
|
+
readonly statements: Schema.Number;
|
|
538
|
+
readonly branches: Schema.Number;
|
|
539
|
+
readonly functions: Schema.Number;
|
|
540
|
+
readonly lines: Schema.Number;
|
|
549
541
|
}>;
|
|
550
|
-
uncoveredLines:
|
|
542
|
+
readonly uncoveredLines: Schema.String;
|
|
551
543
|
}>>;
|
|
552
|
-
lowCoverageFiles: Schema
|
|
553
|
-
belowTarget: Schema.optional<Schema
|
|
554
|
-
file:
|
|
555
|
-
summary: Schema.Struct<{
|
|
556
|
-
statements:
|
|
557
|
-
branches:
|
|
558
|
-
functions:
|
|
559
|
-
lines:
|
|
544
|
+
readonly lowCoverageFiles: Schema.$Array<Schema.String>;
|
|
545
|
+
readonly belowTarget: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
546
|
+
readonly file: Schema.String;
|
|
547
|
+
readonly summary: Schema.Struct<{
|
|
548
|
+
readonly statements: Schema.Number;
|
|
549
|
+
readonly branches: Schema.Number;
|
|
550
|
+
readonly functions: Schema.Number;
|
|
551
|
+
readonly lines: Schema.Number;
|
|
560
552
|
}>;
|
|
561
|
-
uncoveredLines:
|
|
553
|
+
readonly uncoveredLines: Schema.String;
|
|
562
554
|
}>>>;
|
|
563
|
-
belowTargetFiles: Schema.optional<Schema
|
|
555
|
+
readonly belowTargetFiles: Schema.optional<Schema.$Array<Schema.String>>;
|
|
564
556
|
}>>;
|
|
565
|
-
tagCounts: Schema.optional<Schema
|
|
566
|
-
passed: Schema.optional<
|
|
567
|
-
failed: Schema.optional<
|
|
568
|
-
skipped: Schema.optional<
|
|
557
|
+
readonly tagCounts: Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{
|
|
558
|
+
readonly passed: Schema.optional<Schema.Number>;
|
|
559
|
+
readonly failed: Schema.optional<Schema.Number>;
|
|
560
|
+
readonly skipped: Schema.optional<Schema.Number>;
|
|
569
561
|
}>>>;
|
|
570
|
-
consoleLeaks: Schema.optional<Schema.Struct<{
|
|
571
|
-
total:
|
|
572
|
-
byFile: Schema
|
|
573
|
-
file:
|
|
574
|
-
stdout:
|
|
575
|
-
stderr:
|
|
576
|
-
tests: Schema.optional<Schema
|
|
577
|
-
sample: Schema.optional<
|
|
562
|
+
readonly consoleLeaks: Schema.optional<Schema.Struct<{
|
|
563
|
+
readonly total: Schema.Number;
|
|
564
|
+
readonly byFile: Schema.$Array<Schema.Struct<{
|
|
565
|
+
readonly file: Schema.String;
|
|
566
|
+
readonly stdout: Schema.Number;
|
|
567
|
+
readonly stderr: Schema.Number;
|
|
568
|
+
readonly tests: Schema.optional<Schema.$Array<Schema.String>>;
|
|
569
|
+
readonly sample: Schema.optional<Schema.String>;
|
|
578
570
|
}>>;
|
|
579
|
-
truncated: Schema.optional<
|
|
571
|
+
readonly truncated: Schema.optional<Schema.Boolean>;
|
|
580
572
|
}>>;
|
|
581
573
|
}>;
|
|
582
574
|
/** @public */
|
|
@@ -585,7 +577,7 @@ type AgentReport = typeof AgentReport.Type;
|
|
|
585
577
|
* Classification of a test's failure history across runs.
|
|
586
578
|
* @public
|
|
587
579
|
*/
|
|
588
|
-
declare const TestClassification: Schema.
|
|
580
|
+
declare const TestClassification: Schema.Literals<readonly ["stable", "new-failure", "persistent", "flaky", "recovered"]>;
|
|
589
581
|
/** @public */
|
|
590
582
|
type TestClassification = typeof TestClassification.Type;
|
|
591
583
|
//#endregion
|
|
@@ -594,14 +586,14 @@ type TestClassification = typeof TestClassification.Type;
|
|
|
594
586
|
* Coverage metric whose threshold can be violated independently.
|
|
595
587
|
* @public
|
|
596
588
|
*/
|
|
597
|
-
declare const CoverageMetric: Schema.
|
|
589
|
+
declare const CoverageMetric: Schema.Literals<readonly ["lines", "branches", "functions", "statements"]>;
|
|
598
590
|
/** @public */
|
|
599
591
|
type CoverageMetric = typeof CoverageMetric.Type;
|
|
600
592
|
/**
|
|
601
593
|
* Severity tier for a suggested action emitted during a run.
|
|
602
594
|
* @public
|
|
603
595
|
*/
|
|
604
|
-
declare const ActionSeverity: Schema.
|
|
596
|
+
declare const ActionSeverity: Schema.Literals<readonly ["info", "warn", "blocker"]>;
|
|
605
597
|
/** @public */
|
|
606
598
|
type ActionSeverity = typeof ActionSeverity.Type;
|
|
607
599
|
/**
|
|
@@ -610,14 +602,14 @@ type ActionSeverity = typeof ActionSeverity.Type;
|
|
|
610
602
|
* @public
|
|
611
603
|
*/
|
|
612
604
|
declare const CoverageGap: Schema.Struct<{
|
|
613
|
-
file:
|
|
614
|
-
missing: Schema.Struct<{
|
|
615
|
-
statements:
|
|
616
|
-
branches:
|
|
617
|
-
functions:
|
|
618
|
-
lines:
|
|
605
|
+
readonly file: Schema.String;
|
|
606
|
+
readonly missing: Schema.Struct<{
|
|
607
|
+
readonly statements: Schema.Number;
|
|
608
|
+
readonly branches: Schema.Number;
|
|
609
|
+
readonly functions: Schema.Number;
|
|
610
|
+
readonly lines: Schema.Number;
|
|
619
611
|
}>;
|
|
620
|
-
uncoveredLines: Schema.optional<
|
|
612
|
+
readonly uncoveredLines: Schema.optional<Schema.String>;
|
|
621
613
|
}>;
|
|
622
614
|
/** @public */
|
|
623
615
|
type CoverageGap = typeof CoverageGap.Type;
|
|
@@ -631,144 +623,144 @@ type CoverageGap = typeof CoverageGap.Type;
|
|
|
631
623
|
* been updated to consume the new state shape.
|
|
632
624
|
* @public
|
|
633
625
|
*/
|
|
634
|
-
declare const RunEvent: Schema.Union<[Schema.TaggedStruct<"RunStarted", {
|
|
635
|
-
runId:
|
|
636
|
-
startedAt:
|
|
637
|
-
configHash:
|
|
626
|
+
declare const RunEvent: Schema.Union<readonly [Schema.TaggedStruct<"RunStarted", {
|
|
627
|
+
readonly runId: Schema.String;
|
|
628
|
+
readonly startedAt: Schema.String;
|
|
629
|
+
readonly configHash: Schema.String;
|
|
638
630
|
}>, Schema.TaggedStruct<"ModuleQueued", {
|
|
639
|
-
modulePath:
|
|
640
|
-
projectName: Schema.optional<
|
|
631
|
+
readonly modulePath: Schema.String;
|
|
632
|
+
readonly projectName: Schema.optional<Schema.String>;
|
|
641
633
|
}>, Schema.TaggedStruct<"ModuleStarted", {
|
|
642
|
-
modulePath:
|
|
643
|
-
startedAt:
|
|
644
|
-
projectName: Schema.optional<
|
|
634
|
+
readonly modulePath: Schema.String;
|
|
635
|
+
readonly startedAt: Schema.String;
|
|
636
|
+
readonly projectName: Schema.optional<Schema.String>;
|
|
645
637
|
}>, Schema.TaggedStruct<"TestStarted", {
|
|
646
|
-
modulePath:
|
|
647
|
-
testName:
|
|
648
|
-
suitePath: Schema
|
|
638
|
+
readonly modulePath: Schema.String;
|
|
639
|
+
readonly testName: Schema.String;
|
|
640
|
+
readonly suitePath: Schema.$Array<Schema.String>;
|
|
649
641
|
}>, Schema.TaggedStruct<"TestFinished", {
|
|
650
|
-
modulePath:
|
|
651
|
-
testName:
|
|
652
|
-
suitePath: Schema
|
|
653
|
-
status: Schema.
|
|
654
|
-
durationMs:
|
|
655
|
-
error: Schema.optional<Schema.Struct<{
|
|
656
|
-
message:
|
|
657
|
-
stack: Schema.optional<
|
|
658
|
-
diff: Schema.optional<
|
|
659
|
-
expected: Schema.optional<
|
|
660
|
-
received: Schema.optional<
|
|
642
|
+
readonly modulePath: Schema.String;
|
|
643
|
+
readonly testName: Schema.String;
|
|
644
|
+
readonly suitePath: Schema.$Array<Schema.String>;
|
|
645
|
+
readonly status: Schema.Literals<readonly ["passed", "failed", "skipped", "pending"]>;
|
|
646
|
+
readonly durationMs: Schema.Number;
|
|
647
|
+
readonly error: Schema.optional<Schema.Struct<{
|
|
648
|
+
readonly message: Schema.String;
|
|
649
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
650
|
+
readonly diff: Schema.optional<Schema.String>;
|
|
651
|
+
readonly expected: Schema.optional<Schema.String>;
|
|
652
|
+
readonly received: Schema.optional<Schema.String>;
|
|
661
653
|
}>>;
|
|
662
|
-
timedOut: Schema.optional<
|
|
654
|
+
readonly timedOut: Schema.optional<Schema.Boolean>;
|
|
663
655
|
}>, Schema.TaggedStruct<"ModuleFinished", {
|
|
664
|
-
modulePath:
|
|
665
|
-
passCount:
|
|
666
|
-
failCount:
|
|
667
|
-
skipCount:
|
|
668
|
-
durationMs:
|
|
669
|
-
projectName: Schema.optional<
|
|
670
|
-
timeoutCount: Schema.optional<
|
|
671
|
-
tagCounts: Schema.optional<Schema
|
|
656
|
+
readonly modulePath: Schema.String;
|
|
657
|
+
readonly passCount: Schema.Number;
|
|
658
|
+
readonly failCount: Schema.Number;
|
|
659
|
+
readonly skipCount: Schema.Number;
|
|
660
|
+
readonly durationMs: Schema.Number;
|
|
661
|
+
readonly projectName: Schema.optional<Schema.String>;
|
|
662
|
+
readonly timeoutCount: Schema.optional<Schema.Number>;
|
|
663
|
+
readonly tagCounts: Schema.optional<Schema.$Record<Schema.String, Schema.Number>>;
|
|
672
664
|
}>, Schema.TaggedStruct<"ModuleCollected", {
|
|
673
|
-
modulePath:
|
|
674
|
-
testCount:
|
|
675
|
-
suiteCount:
|
|
665
|
+
readonly modulePath: Schema.String;
|
|
666
|
+
readonly testCount: Schema.Number;
|
|
667
|
+
readonly suiteCount: Schema.Number;
|
|
676
668
|
}>, Schema.TaggedStruct<"SuiteStarted", {
|
|
677
|
-
modulePath:
|
|
678
|
-
suitePath: Schema
|
|
679
|
-
suiteName:
|
|
669
|
+
readonly modulePath: Schema.String;
|
|
670
|
+
readonly suitePath: Schema.$Array<Schema.String>;
|
|
671
|
+
readonly suiteName: Schema.String;
|
|
680
672
|
}>, Schema.TaggedStruct<"SuiteFinished", {
|
|
681
|
-
modulePath:
|
|
682
|
-
suitePath: Schema
|
|
683
|
-
suiteName:
|
|
684
|
-
passCount:
|
|
685
|
-
failCount:
|
|
686
|
-
skipCount:
|
|
673
|
+
readonly modulePath: Schema.String;
|
|
674
|
+
readonly suitePath: Schema.$Array<Schema.String>;
|
|
675
|
+
readonly suiteName: Schema.String;
|
|
676
|
+
readonly passCount: Schema.Number;
|
|
677
|
+
readonly failCount: Schema.Number;
|
|
678
|
+
readonly skipCount: Schema.Number;
|
|
687
679
|
}>, Schema.TaggedStruct<"HookStarted", {
|
|
688
|
-
modulePath:
|
|
689
|
-
hookType: Schema.
|
|
690
|
-
scopeName:
|
|
680
|
+
readonly modulePath: Schema.String;
|
|
681
|
+
readonly hookType: Schema.Literals<readonly ["beforeAll", "afterAll", "beforeEach", "afterEach"]>;
|
|
682
|
+
readonly scopeName: Schema.String;
|
|
691
683
|
}>, Schema.TaggedStruct<"HookFinished", {
|
|
692
|
-
modulePath:
|
|
693
|
-
hookType: Schema.
|
|
694
|
-
scopeName:
|
|
695
|
-
durationMs:
|
|
696
|
-
status: Schema.
|
|
697
|
-
error: Schema.optional<Schema.Struct<{
|
|
698
|
-
message:
|
|
699
|
-
stack: Schema.optional<
|
|
700
|
-
diff: Schema.optional<
|
|
701
|
-
expected: Schema.optional<
|
|
702
|
-
received: Schema.optional<
|
|
684
|
+
readonly modulePath: Schema.String;
|
|
685
|
+
readonly hookType: Schema.Literals<readonly ["beforeAll", "afterAll", "beforeEach", "afterEach"]>;
|
|
686
|
+
readonly scopeName: Schema.String;
|
|
687
|
+
readonly durationMs: Schema.Number;
|
|
688
|
+
readonly status: Schema.Literals<readonly ["passed", "failed"]>;
|
|
689
|
+
readonly error: Schema.optional<Schema.Struct<{
|
|
690
|
+
readonly message: Schema.String;
|
|
691
|
+
readonly stack: Schema.optional<Schema.String>;
|
|
692
|
+
readonly diff: Schema.optional<Schema.String>;
|
|
693
|
+
readonly expected: Schema.optional<Schema.String>;
|
|
694
|
+
readonly received: Schema.optional<Schema.String>;
|
|
703
695
|
}>>;
|
|
704
696
|
}>, Schema.TaggedStruct<"ConsoleLog", {
|
|
705
|
-
modulePath: Schema.optional<
|
|
706
|
-
testName: Schema.optional<
|
|
707
|
-
level: Schema.
|
|
708
|
-
content:
|
|
709
|
-
time:
|
|
697
|
+
readonly modulePath: Schema.optional<Schema.String>;
|
|
698
|
+
readonly testName: Schema.optional<Schema.String>;
|
|
699
|
+
readonly level: Schema.Literals<readonly ["stdout", "stderr"]>;
|
|
700
|
+
readonly content: Schema.String;
|
|
701
|
+
readonly time: Schema.Number;
|
|
710
702
|
}>, Schema.TaggedStruct<"RunTimedOut", {
|
|
711
|
-
message:
|
|
703
|
+
readonly message: Schema.String;
|
|
712
704
|
}>, Schema.TaggedStruct<"TestAnnotated", {
|
|
713
|
-
modulePath:
|
|
714
|
-
testName:
|
|
715
|
-
suitePath: Schema
|
|
716
|
-
annotation:
|
|
705
|
+
readonly modulePath: Schema.String;
|
|
706
|
+
readonly testName: Schema.String;
|
|
707
|
+
readonly suitePath: Schema.$Array<Schema.String>;
|
|
708
|
+
readonly annotation: Schema.String;
|
|
717
709
|
}>, Schema.TaggedStruct<"TestArtifactRecorded", {
|
|
718
|
-
modulePath:
|
|
719
|
-
testName:
|
|
720
|
-
suitePath: Schema
|
|
721
|
-
artifact:
|
|
710
|
+
readonly modulePath: Schema.String;
|
|
711
|
+
readonly testName: Schema.String;
|
|
712
|
+
readonly suitePath: Schema.$Array<Schema.String>;
|
|
713
|
+
readonly artifact: Schema.String;
|
|
722
714
|
}>, Schema.TaggedStruct<"WatcherReady", {}>, Schema.TaggedStruct<"WatcherRerun", {
|
|
723
|
-
triggerFiles: Schema
|
|
724
|
-
reason: Schema.optional<
|
|
715
|
+
readonly triggerFiles: Schema.$Array<Schema.String>;
|
|
716
|
+
readonly reason: Schema.optional<Schema.String>;
|
|
725
717
|
}>, Schema.TaggedStruct<"TrendComputed", {
|
|
726
|
-
direction: Schema.
|
|
727
|
-
runCount:
|
|
718
|
+
readonly direction: Schema.Literals<readonly ["improving", "regressing", "stable"]>;
|
|
719
|
+
readonly runCount: Schema.Number;
|
|
728
720
|
}>, Schema.TaggedStruct<"CoverageReady", {
|
|
729
|
-
metrics: Schema.Struct<{
|
|
730
|
-
statements:
|
|
731
|
-
branches:
|
|
732
|
-
functions:
|
|
733
|
-
lines:
|
|
721
|
+
readonly metrics: Schema.Struct<{
|
|
722
|
+
readonly statements: Schema.Number;
|
|
723
|
+
readonly branches: Schema.Number;
|
|
724
|
+
readonly functions: Schema.Number;
|
|
725
|
+
readonly lines: Schema.Number;
|
|
734
726
|
}>;
|
|
735
|
-
thresholds: Schema.Struct<{
|
|
736
|
-
lines: Schema.optional<
|
|
737
|
-
functions: Schema.optional<
|
|
738
|
-
branches: Schema.optional<
|
|
739
|
-
statements: Schema.optional<
|
|
727
|
+
readonly thresholds: Schema.Struct<{
|
|
728
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
729
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
730
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
731
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
740
732
|
}>;
|
|
741
|
-
gaps: Schema
|
|
742
|
-
file:
|
|
743
|
-
missing: Schema.Struct<{
|
|
744
|
-
statements:
|
|
745
|
-
branches:
|
|
746
|
-
functions:
|
|
747
|
-
lines:
|
|
733
|
+
readonly gaps: Schema.$Array<Schema.Struct<{
|
|
734
|
+
readonly file: Schema.String;
|
|
735
|
+
readonly missing: Schema.Struct<{
|
|
736
|
+
readonly statements: Schema.Number;
|
|
737
|
+
readonly branches: Schema.Number;
|
|
738
|
+
readonly functions: Schema.Number;
|
|
739
|
+
readonly lines: Schema.Number;
|
|
748
740
|
}>;
|
|
749
|
-
uncoveredLines: Schema.optional<
|
|
741
|
+
readonly uncoveredLines: Schema.optional<Schema.String>;
|
|
750
742
|
}>>;
|
|
751
743
|
}>, Schema.TaggedStruct<"ThresholdViolation", {
|
|
752
|
-
metric: Schema.
|
|
753
|
-
expected:
|
|
754
|
-
actual:
|
|
744
|
+
readonly metric: Schema.Literals<readonly ["lines", "branches", "functions", "statements"]>;
|
|
745
|
+
readonly expected: Schema.Number;
|
|
746
|
+
readonly actual: Schema.Number;
|
|
755
747
|
}>, Schema.TaggedStruct<"FailureClassified", {
|
|
756
|
-
modulePath:
|
|
757
|
-
testName:
|
|
758
|
-
classification: Schema.
|
|
748
|
+
readonly modulePath: Schema.String;
|
|
749
|
+
readonly testName: Schema.String;
|
|
750
|
+
readonly classification: Schema.Literals<readonly ["stable", "new-failure", "persistent", "flaky", "recovered"]>;
|
|
759
751
|
}>, Schema.TaggedStruct<"SuggestedAction", {
|
|
760
|
-
severity: Schema.
|
|
761
|
-
title:
|
|
762
|
-
detail:
|
|
763
|
-
targetTool: Schema.optional<
|
|
752
|
+
readonly severity: Schema.Literals<readonly ["info", "warn", "blocker"]>;
|
|
753
|
+
readonly title: Schema.String;
|
|
754
|
+
readonly detail: Schema.String;
|
|
755
|
+
readonly targetTool: Schema.optional<Schema.String>;
|
|
764
756
|
}>, Schema.TaggedStruct<"RunFinished", {
|
|
765
|
-
runId:
|
|
766
|
-
finishedAt:
|
|
767
|
-
passCount:
|
|
768
|
-
failCount:
|
|
769
|
-
skipCount:
|
|
770
|
-
durationMs:
|
|
771
|
-
timeoutCount: Schema.optional<
|
|
757
|
+
readonly runId: Schema.String;
|
|
758
|
+
readonly finishedAt: Schema.String;
|
|
759
|
+
readonly passCount: Schema.Number;
|
|
760
|
+
readonly failCount: Schema.Number;
|
|
761
|
+
readonly skipCount: Schema.Number;
|
|
762
|
+
readonly durationMs: Schema.Number;
|
|
763
|
+
readonly timeoutCount: Schema.optional<Schema.Number>;
|
|
772
764
|
}>]>;
|
|
773
765
|
/** @public */
|
|
774
766
|
type RunEvent = typeof RunEvent.Type;
|
|
@@ -787,10 +779,10 @@ type RunEventByTag = { [E in RunEvent as E["_tag"]]: E; };
|
|
|
787
779
|
* @public
|
|
788
780
|
*/
|
|
789
781
|
declare const MetricThresholds: Schema.Struct<{
|
|
790
|
-
lines: Schema.optional<
|
|
791
|
-
functions: Schema.optional<
|
|
792
|
-
branches: Schema.optional<
|
|
793
|
-
statements: Schema.optional<
|
|
782
|
+
readonly lines: Schema.optional<Schema.Number>;
|
|
783
|
+
readonly functions: Schema.optional<Schema.Number>;
|
|
784
|
+
readonly branches: Schema.optional<Schema.Number>;
|
|
785
|
+
readonly statements: Schema.optional<Schema.Number>;
|
|
794
786
|
}>;
|
|
795
787
|
/** @public */
|
|
796
788
|
type MetricThresholds = typeof MetricThresholds.Type;
|
|
@@ -1080,49 +1072,110 @@ declare const buildFooter: (inputs: DispatchInputs) => string;
|
|
|
1080
1072
|
declare const formatDisplayDuration: (ms: number) => string;
|
|
1081
1073
|
//#endregion
|
|
1082
1074
|
//#region src/pubsub/Channel.d.ts
|
|
1083
|
-
declare const RunEventChannel_base: Context.
|
|
1084
|
-
readonly _tag: "
|
|
1085
|
-
readonly
|
|
1086
|
-
readonly
|
|
1087
|
-
readonly
|
|
1088
|
-
|
|
1089
|
-
readonly
|
|
1090
|
-
|
|
1091
|
-
readonly
|
|
1092
|
-
readonly
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
readonly
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1075
|
+
declare const RunEventChannel_base: Context.ServiceClass<RunEventChannel, "vitest-agent-ui/RunEventChannel", PubSub.PubSub<import("effect/Schema").Struct.ReadonlySide<{
|
|
1076
|
+
readonly _tag: import("effect/Schema").tag<"RunStarted">;
|
|
1077
|
+
readonly runId: import("effect/Schema").String;
|
|
1078
|
+
readonly startedAt: import("effect/Schema").String;
|
|
1079
|
+
readonly configHash: import("effect/Schema").String;
|
|
1080
|
+
}, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
|
|
1081
|
+
readonly _tag: import("effect/Schema").tag<"TestStarted">;
|
|
1082
|
+
readonly modulePath: import("effect/Schema").String;
|
|
1083
|
+
readonly testName: import("effect/Schema").String;
|
|
1084
|
+
readonly suitePath: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1085
|
+
}, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
|
|
1086
|
+
readonly _tag: import("effect/Schema").tag<"ModuleCollected">;
|
|
1087
|
+
readonly modulePath: import("effect/Schema").String;
|
|
1088
|
+
readonly testCount: import("effect/Schema").Number;
|
|
1089
|
+
readonly suiteCount: import("effect/Schema").Number;
|
|
1090
|
+
}, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
|
|
1091
|
+
readonly _tag: import("effect/Schema").tag<"SuiteStarted">;
|
|
1092
|
+
readonly modulePath: import("effect/Schema").String;
|
|
1093
|
+
readonly suitePath: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1094
|
+
readonly suiteName: import("effect/Schema").String;
|
|
1095
|
+
}, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
|
|
1096
|
+
readonly _tag: import("effect/Schema").tag<"SuiteFinished">;
|
|
1097
|
+
readonly modulePath: import("effect/Schema").String;
|
|
1098
|
+
readonly suitePath: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1099
|
+
readonly suiteName: import("effect/Schema").String;
|
|
1100
|
+
readonly passCount: import("effect/Schema").Number;
|
|
1101
|
+
readonly failCount: import("effect/Schema").Number;
|
|
1102
|
+
readonly skipCount: import("effect/Schema").Number;
|
|
1103
|
+
}, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
|
|
1104
|
+
readonly _tag: import("effect/Schema").tag<"HookStarted">;
|
|
1105
|
+
readonly modulePath: import("effect/Schema").String;
|
|
1106
|
+
readonly hookType: import("effect/Schema").Literals<readonly ["beforeAll", "afterAll", "beforeEach", "afterEach"]>;
|
|
1107
|
+
readonly scopeName: import("effect/Schema").String;
|
|
1108
|
+
}, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
|
|
1109
|
+
readonly _tag: import("effect/Schema").tag<"RunTimedOut">;
|
|
1110
|
+
readonly message: import("effect/Schema").String;
|
|
1111
|
+
}, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
|
|
1112
|
+
readonly _tag: import("effect/Schema").tag<"TestAnnotated">;
|
|
1113
|
+
readonly modulePath: import("effect/Schema").String;
|
|
1114
|
+
readonly testName: import("effect/Schema").String;
|
|
1115
|
+
readonly suitePath: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1116
|
+
readonly annotation: import("effect/Schema").String;
|
|
1117
|
+
}, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
|
|
1118
|
+
readonly _tag: import("effect/Schema").tag<"TestArtifactRecorded">;
|
|
1119
|
+
readonly modulePath: import("effect/Schema").String;
|
|
1120
|
+
readonly testName: import("effect/Schema").String;
|
|
1121
|
+
readonly suitePath: import("effect/Schema").$Array<import("effect/Schema").String>;
|
|
1122
|
+
readonly artifact: import("effect/Schema").String;
|
|
1123
|
+
}, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
|
|
1124
|
+
readonly _tag: import("effect/Schema").tag<"WatcherReady">;
|
|
1125
|
+
}, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
|
|
1126
|
+
readonly _tag: import("effect/Schema").tag<"TrendComputed">;
|
|
1127
|
+
readonly direction: import("effect/Schema").Literals<readonly ["improving", "regressing", "stable"]>;
|
|
1128
|
+
readonly runCount: import("effect/Schema").Number;
|
|
1129
|
+
}, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
|
|
1130
|
+
readonly _tag: import("effect/Schema").tag<"CoverageReady">;
|
|
1131
|
+
readonly metrics: import("effect/Schema").Struct<{
|
|
1132
|
+
readonly statements: import("effect/Schema").Number;
|
|
1133
|
+
readonly branches: import("effect/Schema").Number;
|
|
1134
|
+
readonly functions: import("effect/Schema").Number;
|
|
1135
|
+
readonly lines: import("effect/Schema").Number;
|
|
1136
|
+
}>;
|
|
1137
|
+
readonly thresholds: import("effect/Schema").Struct<{
|
|
1138
|
+
readonly lines: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
1139
|
+
readonly functions: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
1140
|
+
readonly branches: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
1141
|
+
readonly statements: import("effect/Schema").optional<import("effect/Schema").Number>;
|
|
1142
|
+
}>;
|
|
1143
|
+
readonly gaps: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1144
|
+
readonly file: import("effect/Schema").String;
|
|
1145
|
+
readonly missing: import("effect/Schema").Struct<{
|
|
1146
|
+
readonly statements: import("effect/Schema").Number;
|
|
1147
|
+
readonly branches: import("effect/Schema").Number;
|
|
1148
|
+
readonly functions: import("effect/Schema").Number;
|
|
1149
|
+
readonly lines: import("effect/Schema").Number;
|
|
1150
|
+
}>;
|
|
1151
|
+
readonly uncoveredLines: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
1152
|
+
}>>;
|
|
1153
|
+
}, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
|
|
1154
|
+
readonly _tag: import("effect/Schema").tag<"ThresholdViolation">;
|
|
1155
|
+
readonly metric: import("effect/Schema").Literals<readonly ["lines", "branches", "functions", "statements"]>;
|
|
1156
|
+
readonly expected: import("effect/Schema").Number;
|
|
1157
|
+
readonly actual: import("effect/Schema").Number;
|
|
1158
|
+
}, "Type"> | import("effect/Schema").Struct.ReadonlySide<{
|
|
1159
|
+
readonly _tag: import("effect/Schema").tag<"FailureClassified">;
|
|
1160
|
+
readonly modulePath: import("effect/Schema").String;
|
|
1161
|
+
readonly testName: import("effect/Schema").String;
|
|
1162
|
+
readonly classification: import("effect/Schema").Literals<readonly ["stable", "new-failure", "persistent", "flaky", "recovered"]>;
|
|
1163
|
+
}, "Type"> | {
|
|
1164
|
+
readonly _tag: "ModuleQueued";
|
|
1165
|
+
readonly modulePath: string;
|
|
1166
|
+
readonly projectName?: string | undefined;
|
|
1114
1167
|
} | {
|
|
1115
|
-
readonly _tag: "
|
|
1168
|
+
readonly _tag: "ModuleStarted";
|
|
1116
1169
|
readonly modulePath: string;
|
|
1117
|
-
readonly
|
|
1118
|
-
readonly
|
|
1170
|
+
readonly startedAt: string;
|
|
1171
|
+
readonly projectName?: string | undefined;
|
|
1119
1172
|
} | {
|
|
1120
|
-
readonly _tag: "
|
|
1173
|
+
readonly _tag: "TestFinished";
|
|
1121
1174
|
readonly modulePath: string;
|
|
1122
|
-
readonly
|
|
1123
|
-
readonly
|
|
1175
|
+
readonly testName: string;
|
|
1176
|
+
readonly suitePath: readonly string[];
|
|
1177
|
+
readonly status: "failed" | "passed" | "pending" | "skipped";
|
|
1124
1178
|
readonly durationMs: number;
|
|
1125
|
-
readonly status: "failed" | "passed";
|
|
1126
1179
|
readonly error?: {
|
|
1127
1180
|
readonly message: string;
|
|
1128
1181
|
readonly stack?: string | undefined;
|
|
@@ -1130,16 +1183,7 @@ declare const RunEventChannel_base: Context.TagClass<RunEventChannel, "vitest-ag
|
|
|
1130
1183
|
readonly expected?: string | undefined;
|
|
1131
1184
|
readonly received?: string | undefined;
|
|
1132
1185
|
} | undefined;
|
|
1133
|
-
|
|
1134
|
-
readonly _tag: "HookStarted";
|
|
1135
|
-
readonly modulePath: string;
|
|
1136
|
-
readonly hookType: "afterAll" | "afterEach" | "beforeAll" | "beforeEach";
|
|
1137
|
-
readonly scopeName: string;
|
|
1138
|
-
} | {
|
|
1139
|
-
readonly _tag: "ModuleCollected";
|
|
1140
|
-
readonly modulePath: string;
|
|
1141
|
-
readonly testCount: number;
|
|
1142
|
-
readonly suiteCount: number;
|
|
1186
|
+
readonly timedOut?: boolean | undefined;
|
|
1143
1187
|
} | {
|
|
1144
1188
|
readonly _tag: "ModuleFinished";
|
|
1145
1189
|
readonly modulePath: string;
|
|
@@ -1153,31 +1197,30 @@ declare const RunEventChannel_base: Context.TagClass<RunEventChannel, "vitest-ag
|
|
|
1153
1197
|
readonly [x: string]: number;
|
|
1154
1198
|
} | undefined;
|
|
1155
1199
|
} | {
|
|
1156
|
-
readonly _tag: "
|
|
1157
|
-
readonly modulePath: string;
|
|
1158
|
-
readonly projectName?: string | undefined;
|
|
1159
|
-
} | {
|
|
1160
|
-
readonly _tag: "ModuleStarted";
|
|
1200
|
+
readonly _tag: "HookFinished";
|
|
1161
1201
|
readonly modulePath: string;
|
|
1162
|
-
readonly
|
|
1163
|
-
readonly
|
|
1164
|
-
} | {
|
|
1165
|
-
readonly _tag: "RunFinished";
|
|
1166
|
-
readonly runId: string;
|
|
1167
|
-
readonly finishedAt: string;
|
|
1168
|
-
readonly passCount: number;
|
|
1169
|
-
readonly failCount: number;
|
|
1170
|
-
readonly skipCount: number;
|
|
1202
|
+
readonly hookType: "afterAll" | "afterEach" | "beforeAll" | "beforeEach";
|
|
1203
|
+
readonly scopeName: string;
|
|
1171
1204
|
readonly durationMs: number;
|
|
1172
|
-
readonly
|
|
1205
|
+
readonly status: "failed" | "passed";
|
|
1206
|
+
readonly error?: {
|
|
1207
|
+
readonly message: string;
|
|
1208
|
+
readonly stack?: string | undefined;
|
|
1209
|
+
readonly diff?: string | undefined;
|
|
1210
|
+
readonly expected?: string | undefined;
|
|
1211
|
+
readonly received?: string | undefined;
|
|
1212
|
+
} | undefined;
|
|
1173
1213
|
} | {
|
|
1174
|
-
readonly _tag: "
|
|
1175
|
-
readonly
|
|
1176
|
-
readonly
|
|
1177
|
-
readonly
|
|
1214
|
+
readonly _tag: "ConsoleLog";
|
|
1215
|
+
readonly modulePath?: string | undefined;
|
|
1216
|
+
readonly testName?: string | undefined;
|
|
1217
|
+
readonly level: "stderr" | "stdout";
|
|
1218
|
+
readonly content: string;
|
|
1219
|
+
readonly time: number;
|
|
1178
1220
|
} | {
|
|
1179
|
-
readonly _tag: "
|
|
1180
|
-
readonly
|
|
1221
|
+
readonly _tag: "WatcherRerun";
|
|
1222
|
+
readonly triggerFiles: readonly string[];
|
|
1223
|
+
readonly reason?: string | undefined;
|
|
1181
1224
|
} | {
|
|
1182
1225
|
readonly _tag: "SuggestedAction";
|
|
1183
1226
|
readonly severity: "blocker" | "info" | "warn";
|
|
@@ -1185,65 +1228,14 @@ declare const RunEventChannel_base: Context.TagClass<RunEventChannel, "vitest-ag
|
|
|
1185
1228
|
readonly detail: string;
|
|
1186
1229
|
readonly targetTool?: string | undefined;
|
|
1187
1230
|
} | {
|
|
1188
|
-
readonly _tag: "
|
|
1189
|
-
readonly
|
|
1190
|
-
readonly
|
|
1191
|
-
readonly suiteName: string;
|
|
1231
|
+
readonly _tag: "RunFinished";
|
|
1232
|
+
readonly runId: string;
|
|
1233
|
+
readonly finishedAt: string;
|
|
1192
1234
|
readonly passCount: number;
|
|
1193
1235
|
readonly failCount: number;
|
|
1194
1236
|
readonly skipCount: number;
|
|
1195
|
-
} | {
|
|
1196
|
-
readonly _tag: "SuiteStarted";
|
|
1197
|
-
readonly modulePath: string;
|
|
1198
|
-
readonly suitePath: readonly string[];
|
|
1199
|
-
readonly suiteName: string;
|
|
1200
|
-
} | {
|
|
1201
|
-
readonly _tag: "TestAnnotated";
|
|
1202
|
-
readonly modulePath: string;
|
|
1203
|
-
readonly testName: string;
|
|
1204
|
-
readonly suitePath: readonly string[];
|
|
1205
|
-
readonly annotation: string;
|
|
1206
|
-
} | {
|
|
1207
|
-
readonly _tag: "TestArtifactRecorded";
|
|
1208
|
-
readonly modulePath: string;
|
|
1209
|
-
readonly testName: string;
|
|
1210
|
-
readonly suitePath: readonly string[];
|
|
1211
|
-
readonly artifact: string;
|
|
1212
|
-
} | {
|
|
1213
|
-
readonly _tag: "TestFinished";
|
|
1214
|
-
readonly modulePath: string;
|
|
1215
|
-
readonly testName: string;
|
|
1216
|
-
readonly suitePath: readonly string[];
|
|
1217
|
-
readonly status: "failed" | "passed" | "pending" | "skipped";
|
|
1218
1237
|
readonly durationMs: number;
|
|
1219
|
-
readonly
|
|
1220
|
-
readonly message: string;
|
|
1221
|
-
readonly stack?: string | undefined;
|
|
1222
|
-
readonly diff?: string | undefined;
|
|
1223
|
-
readonly expected?: string | undefined;
|
|
1224
|
-
readonly received?: string | undefined;
|
|
1225
|
-
} | undefined;
|
|
1226
|
-
readonly timedOut?: boolean | undefined;
|
|
1227
|
-
} | {
|
|
1228
|
-
readonly _tag: "TestStarted";
|
|
1229
|
-
readonly modulePath: string;
|
|
1230
|
-
readonly testName: string;
|
|
1231
|
-
readonly suitePath: readonly string[];
|
|
1232
|
-
} | {
|
|
1233
|
-
readonly _tag: "ThresholdViolation";
|
|
1234
|
-
readonly metric: "branches" | "functions" | "lines" | "statements";
|
|
1235
|
-
readonly expected: number;
|
|
1236
|
-
readonly actual: number;
|
|
1237
|
-
} | {
|
|
1238
|
-
readonly _tag: "TrendComputed";
|
|
1239
|
-
readonly direction: "improving" | "regressing" | "stable";
|
|
1240
|
-
readonly runCount: number;
|
|
1241
|
-
} | {
|
|
1242
|
-
readonly _tag: "WatcherReady";
|
|
1243
|
-
} | {
|
|
1244
|
-
readonly _tag: "WatcherRerun";
|
|
1245
|
-
readonly triggerFiles: readonly string[];
|
|
1246
|
-
readonly reason?: string | undefined;
|
|
1238
|
+
readonly timeoutCount?: number | undefined;
|
|
1247
1239
|
}>>;
|
|
1248
1240
|
/**
|
|
1249
1241
|
* Service tag for the run-event channel. Consumers depend on this tag;
|
|
@@ -1336,7 +1328,7 @@ declare const forEachRenderState: <R, E>(onState: (state: RenderState) => Effect
|
|
|
1336
1328
|
* @returns an Effect that resolves to a Stream of render states
|
|
1337
1329
|
* @public
|
|
1338
1330
|
*/
|
|
1339
|
-
declare const renderStateStream: (initial?: RenderState) => Effect.Effect<Stream.Stream<RenderState>, never, RunEventChannel
|
|
1331
|
+
declare const renderStateStream: (initial?: RenderState) => Effect.Effect<Stream.Stream<RenderState>, never, RunEventChannel>;
|
|
1340
1332
|
/**
|
|
1341
1333
|
* Convenience: subscribe and produce a low-level dequeue of raw
|
|
1342
1334
|
* `RunEvent` values. Mostly for tests and ad-hoc consumers; most
|
|
@@ -1346,7 +1338,7 @@ declare const renderStateStream: (initial?: RenderState) => Effect.Effect<Stream
|
|
|
1346
1338
|
* @returns an Effect that resolves to a dequeue of raw run events
|
|
1347
1339
|
* @public
|
|
1348
1340
|
*/
|
|
1349
|
-
declare const subscribeRaw: () => Effect.Effect<
|
|
1341
|
+
declare const subscribeRaw: () => Effect.Effect<PubSub.Subscription<RunEvent>, never, RunEventChannel | Scope.Scope>;
|
|
1350
1342
|
//#endregion
|
|
1351
1343
|
//#region src/reducer.d.ts
|
|
1352
1344
|
/**
|
|
@@ -1758,6 +1750,15 @@ interface TrendLineProps {
|
|
|
1758
1750
|
declare const TrendLine: FC<TrendLineProps>;
|
|
1759
1751
|
//#endregion
|
|
1760
1752
|
//#region src/synthesize.d.ts
|
|
1753
|
+
/**
|
|
1754
|
+
* Synthetic test name used to surface a suite-level (collection/load)
|
|
1755
|
+
* failure in the Failures detail. A module that fails to import has no real
|
|
1756
|
+
* test case to attach the error to, so the synthesizer emits one failed
|
|
1757
|
+
* "test" under this label carrying the module's import error.
|
|
1758
|
+
*
|
|
1759
|
+
* @public
|
|
1760
|
+
*/
|
|
1761
|
+
declare const SUITE_LOAD_FAILURE_LABEL = "test suite failed to load";
|
|
1761
1762
|
/**
|
|
1762
1763
|
* Optional metadata threaded through the synthesized event stream.
|
|
1763
1764
|
*
|
|
@@ -1851,5 +1852,5 @@ declare const synthesizeFromAgentReport: (report: AgentReport, options?: Synthes
|
|
|
1851
1852
|
*/
|
|
1852
1853
|
declare const CURRENT_UI_VERSION: string;
|
|
1853
1854
|
//#endregion
|
|
1854
|
-
export { ActionSeverity, type AgentCellFn, type AgentReport, CURRENT_UI_VERSION, type Cell, type CellOptions, CountColumns, type CountColumnsProps, CoverageBlock, type CoverageBlockProps, FileCoverageReport as CoverageFile, CoverageGap, CoverageMetric, CoverageRenderState, type CoverageTotals, DURATION_CELL_WIDTH, type DispatchInputs, FailureRecord, FailureSection, type FailureSectionProps, FailuresSection, type FailuresSectionProps, type InkCellFn, type MetricThresholds, ModuleHeader, type ModuleHeaderProps, ModuleRecord, ProjectRow, type ProjectRowProps, type ProjectSummary, type RenderAgentOptions, RenderState, RenderTotals, RunEvent, type RunEventByTag, RunEventChannel, RunEventChannelLive, type RunOutcome, type RunShape, SPINNER_FRAMES, SPINNER_FRAME_MS, StatusIcon, type StatusIconKind, type StatusIconProps, StreamApp, type StreamAppProps, SuggestedActionRecord, SuggestedActions, type SuggestedActionsProps, type SynthesizeFromAgentReportOptions, type SynthesizeOptions, type SynthesizedCoverage, TagColumns, type TagColumnsProps, type TestClassification, TestRecord, TestRow, type TestRowProps, TrendLine, type TrendLineProps, type TrendSummary, type VitestModuleDiagnostic, type VitestModuleError, type VitestParsedStack, type VitestTestCase, type VitestTestDiagnostic, type VitestTestError, type VitestTestModule, type VitestTestResult, type VitestTestSuite, accumulateUntilFinished, buildFooter, classifyOutcome, classifyRunShape, dispatch, dispatchInk, dispatcherTable, dominantClassification, forEachRenderState, formatDisplayDuration, initialRenderState, publish, publishAll, reduceRenderState, reduceRenderStateAll, renderAgent, renderStateStream, spinnerFrame, spinnerFrameForTime, subscribeRaw, synthesizeFromAgentReport, synthesizeRunEvents, tagUnion };
|
|
1855
|
+
export { ActionSeverity, type AgentCellFn, type AgentReport, CURRENT_UI_VERSION, type Cell, type CellOptions, CountColumns, type CountColumnsProps, CoverageBlock, type CoverageBlockProps, FileCoverageReport as CoverageFile, CoverageGap, CoverageMetric, CoverageRenderState, type CoverageTotals, DURATION_CELL_WIDTH, type DispatchInputs, FailureRecord, FailureSection, type FailureSectionProps, FailuresSection, type FailuresSectionProps, type InkCellFn, type MetricThresholds, ModuleHeader, type ModuleHeaderProps, ModuleRecord, ProjectRow, type ProjectRowProps, type ProjectSummary, type RenderAgentOptions, RenderState, RenderTotals, RunEvent, type RunEventByTag, RunEventChannel, RunEventChannelLive, type RunOutcome, type RunShape, SPINNER_FRAMES, SPINNER_FRAME_MS, SUITE_LOAD_FAILURE_LABEL, StatusIcon, type StatusIconKind, type StatusIconProps, StreamApp, type StreamAppProps, SuggestedActionRecord, SuggestedActions, type SuggestedActionsProps, type SynthesizeFromAgentReportOptions, type SynthesizeOptions, type SynthesizedCoverage, TagColumns, type TagColumnsProps, type TestClassification, TestRecord, TestRow, type TestRowProps, TrendLine, type TrendLineProps, type TrendSummary, type VitestModuleDiagnostic, type VitestModuleError, type VitestParsedStack, type VitestTestCase, type VitestTestDiagnostic, type VitestTestError, type VitestTestModule, type VitestTestResult, type VitestTestSuite, accumulateUntilFinished, buildFooter, classifyOutcome, classifyRunShape, dispatch, dispatchInk, dispatcherTable, dominantClassification, forEachRenderState, formatDisplayDuration, initialRenderState, publish, publishAll, reduceRenderState, reduceRenderStateAll, renderAgent, renderStateStream, spinnerFrame, spinnerFrameForTime, subscribeRaw, synthesizeFromAgentReport, synthesizeRunEvents, tagUnion };
|
|
1855
1856
|
//# sourceMappingURL=index.d.ts.map
|