@crvy/rprtr 0.0.4 → 0.0.7
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/CHANGELOG.md +81 -0
- package/README.md +41 -7
- package/dist/chunk-JGS2VWQP.js +500 -0
- package/dist/{chunk-BRFA7JCQ.js → chunk-OMDYTNWY.js} +266 -65
- package/dist/cli.js +2 -2
- package/dist/index.css +55 -0
- package/dist/index.js +691 -550
- package/dist/report-state.d.ts +6 -1
- package/dist/report-state.d.ts.map +1 -1
- package/dist/report-utils.d.ts +6 -1
- package/dist/report-utils.d.ts.map +1 -1
- package/dist/reporter-utils.d.ts +20 -1
- package/dist/reporter-utils.d.ts.map +1 -1
- package/dist/reporter.cjs +474 -156
- package/dist/reporter.d.ts +13 -1
- package/dist/reporter.d.ts.map +1 -1
- package/dist/reporter.js +224 -141
- package/dist/schemas.d.ts +217 -22
- package/dist/schemas.d.ts.map +1 -1
- package/dist/server/app.d.ts +6 -0
- package/dist/server/app.d.ts.map +1 -1
- package/dist/server/report-watch.d.ts +9 -0
- package/dist/server/report-watch.d.ts.map +1 -0
- package/dist/server/routes.d.ts +7 -0
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server.cjs +520 -82
- package/dist/server.js +2 -2
- package/dist/snapshot-path-resolver.d.ts +30 -0
- package/dist/snapshot-path-resolver.d.ts.map +1 -0
- package/dist/types.d.ts +9 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-IEYNAB6M.js +0 -263
package/dist/schemas.d.ts
CHANGED
|
@@ -4,13 +4,36 @@ export declare const LocationSchema: z.ZodObject<{
|
|
|
4
4
|
line: z.ZodNumber;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
6
|
export type Location = z.infer<typeof LocationSchema>;
|
|
7
|
+
export declare const VisualSourceSchema: z.ZodEnum<{
|
|
8
|
+
comparison: "comparison";
|
|
9
|
+
"baseline-only": "baseline-only";
|
|
10
|
+
"declared-only": "declared-only";
|
|
11
|
+
}>;
|
|
12
|
+
export type VisualSource = z.infer<typeof VisualSourceSchema>;
|
|
7
13
|
export declare const ImagesSchema: z.ZodObject<{
|
|
8
|
-
actual: z.ZodString
|
|
14
|
+
actual: z.ZodOptional<z.ZodString>;
|
|
9
15
|
expect: z.ZodOptional<z.ZodString>;
|
|
10
16
|
diff: z.ZodOptional<z.ZodString>;
|
|
11
17
|
error: z.ZodOptional<z.ZodString>;
|
|
18
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
comparison: "comparison";
|
|
20
|
+
"baseline-only": "baseline-only";
|
|
21
|
+
"declared-only": "declared-only";
|
|
22
|
+
}>>;
|
|
12
23
|
}, z.core.$strip>;
|
|
13
24
|
export type Images = z.infer<typeof ImagesSchema>;
|
|
25
|
+
export declare const ScreenshotDeclarationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
26
|
+
visualName: z.ZodString;
|
|
27
|
+
kind: z.ZodLiteral<"named">;
|
|
28
|
+
declaredName: z.ZodString;
|
|
29
|
+
snapshotBaseName: z.ZodString;
|
|
30
|
+
occurrenceIndex: z.ZodNumber;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
visualName: z.ZodString;
|
|
33
|
+
kind: z.ZodLiteral<"unnamed">;
|
|
34
|
+
occurrenceIndex: z.ZodNumber;
|
|
35
|
+
}, z.core.$strip>], "kind">;
|
|
36
|
+
export type ScreenshotDeclaration = z.infer<typeof ScreenshotDeclarationSchema>;
|
|
14
37
|
export declare const AttachmentSchema: z.ZodObject<{
|
|
15
38
|
name: z.ZodString;
|
|
16
39
|
path: z.ZodString;
|
|
@@ -19,21 +42,49 @@ export declare const AttachmentSchema: z.ZodObject<{
|
|
|
19
42
|
export type Attachment = z.infer<typeof AttachmentSchema>;
|
|
20
43
|
export declare const TestStatusSchema: z.ZodEnum<{
|
|
21
44
|
unknown: "unknown";
|
|
45
|
+
success: "success";
|
|
22
46
|
pending: "pending";
|
|
23
47
|
running: "running";
|
|
24
48
|
failed: "failed";
|
|
25
49
|
approved: "approved";
|
|
26
|
-
success: "success";
|
|
27
50
|
retrying: "retrying";
|
|
28
51
|
}>;
|
|
29
52
|
export type TestStatus = z.infer<typeof TestStatusSchema>;
|
|
53
|
+
export declare const TestResultStatusSchema: z.ZodEnum<{
|
|
54
|
+
success: "success";
|
|
55
|
+
pending: "pending";
|
|
56
|
+
failed: "failed";
|
|
57
|
+
}>;
|
|
58
|
+
export type TestResultStatus = z.infer<typeof TestResultStatusSchema>;
|
|
30
59
|
export declare const TestResultSchema: z.ZodObject<{
|
|
31
60
|
status: z.ZodEnum<{
|
|
32
|
-
failed: "failed";
|
|
33
61
|
success: "success";
|
|
62
|
+
pending: "pending";
|
|
63
|
+
failed: "failed";
|
|
34
64
|
}>;
|
|
35
65
|
retries: z.ZodNumber;
|
|
36
|
-
images: z.
|
|
66
|
+
images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
67
|
+
actual: z.ZodOptional<z.ZodString>;
|
|
68
|
+
expect: z.ZodOptional<z.ZodString>;
|
|
69
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
70
|
+
error: z.ZodOptional<z.ZodString>;
|
|
71
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
72
|
+
comparison: "comparison";
|
|
73
|
+
"baseline-only": "baseline-only";
|
|
74
|
+
"declared-only": "declared-only";
|
|
75
|
+
}>>;
|
|
76
|
+
}, z.core.$strip>>>;
|
|
77
|
+
visualDeclarations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
78
|
+
visualName: z.ZodString;
|
|
79
|
+
kind: z.ZodLiteral<"named">;
|
|
80
|
+
declaredName: z.ZodString;
|
|
81
|
+
snapshotBaseName: z.ZodString;
|
|
82
|
+
occurrenceIndex: z.ZodNumber;
|
|
83
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
+
visualName: z.ZodString;
|
|
85
|
+
kind: z.ZodLiteral<"unnamed">;
|
|
86
|
+
occurrenceIndex: z.ZodNumber;
|
|
87
|
+
}, z.core.$strip>], "kind">>>;
|
|
37
88
|
error: z.ZodOptional<z.ZodString>;
|
|
38
89
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
39
90
|
}, z.core.$strip>;
|
|
@@ -47,20 +98,42 @@ export declare const TestDataSchema: z.ZodObject<{
|
|
|
47
98
|
retries: z.ZodOptional<z.ZodNumber>;
|
|
48
99
|
status: z.ZodOptional<z.ZodEnum<{
|
|
49
100
|
unknown: "unknown";
|
|
101
|
+
success: "success";
|
|
50
102
|
pending: "pending";
|
|
51
103
|
running: "running";
|
|
52
104
|
failed: "failed";
|
|
53
105
|
approved: "approved";
|
|
54
|
-
success: "success";
|
|
55
106
|
retrying: "retrying";
|
|
56
107
|
}>>;
|
|
57
108
|
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
58
109
|
status: z.ZodEnum<{
|
|
59
|
-
failed: "failed";
|
|
60
110
|
success: "success";
|
|
111
|
+
pending: "pending";
|
|
112
|
+
failed: "failed";
|
|
61
113
|
}>;
|
|
62
114
|
retries: z.ZodNumber;
|
|
63
|
-
images: z.
|
|
115
|
+
images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
116
|
+
actual: z.ZodOptional<z.ZodString>;
|
|
117
|
+
expect: z.ZodOptional<z.ZodString>;
|
|
118
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
119
|
+
error: z.ZodOptional<z.ZodString>;
|
|
120
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
121
|
+
comparison: "comparison";
|
|
122
|
+
"baseline-only": "baseline-only";
|
|
123
|
+
"declared-only": "declared-only";
|
|
124
|
+
}>>;
|
|
125
|
+
}, z.core.$strip>>>;
|
|
126
|
+
visualDeclarations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
127
|
+
visualName: z.ZodString;
|
|
128
|
+
kind: z.ZodLiteral<"named">;
|
|
129
|
+
declaredName: z.ZodString;
|
|
130
|
+
snapshotBaseName: z.ZodString;
|
|
131
|
+
occurrenceIndex: z.ZodNumber;
|
|
132
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
133
|
+
visualName: z.ZodString;
|
|
134
|
+
kind: z.ZodLiteral<"unnamed">;
|
|
135
|
+
occurrenceIndex: z.ZodNumber;
|
|
136
|
+
}, z.core.$strip>], "kind">>>;
|
|
64
137
|
error: z.ZodOptional<z.ZodString>;
|
|
65
138
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
66
139
|
}, z.core.$strip>>>;
|
|
@@ -85,20 +158,42 @@ export declare const CrvyRprtrTestSchema: z.ZodObject<{
|
|
|
85
158
|
retries: z.ZodOptional<z.ZodNumber>;
|
|
86
159
|
status: z.ZodOptional<z.ZodEnum<{
|
|
87
160
|
unknown: "unknown";
|
|
161
|
+
success: "success";
|
|
88
162
|
pending: "pending";
|
|
89
163
|
running: "running";
|
|
90
164
|
failed: "failed";
|
|
91
165
|
approved: "approved";
|
|
92
|
-
success: "success";
|
|
93
166
|
retrying: "retrying";
|
|
94
167
|
}>>;
|
|
95
168
|
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
96
169
|
status: z.ZodEnum<{
|
|
97
|
-
failed: "failed";
|
|
98
170
|
success: "success";
|
|
171
|
+
pending: "pending";
|
|
172
|
+
failed: "failed";
|
|
99
173
|
}>;
|
|
100
174
|
retries: z.ZodNumber;
|
|
101
|
-
images: z.
|
|
175
|
+
images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
176
|
+
actual: z.ZodOptional<z.ZodString>;
|
|
177
|
+
expect: z.ZodOptional<z.ZodString>;
|
|
178
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
179
|
+
error: z.ZodOptional<z.ZodString>;
|
|
180
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
181
|
+
comparison: "comparison";
|
|
182
|
+
"baseline-only": "baseline-only";
|
|
183
|
+
"declared-only": "declared-only";
|
|
184
|
+
}>>;
|
|
185
|
+
}, z.core.$strip>>>;
|
|
186
|
+
visualDeclarations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
187
|
+
visualName: z.ZodString;
|
|
188
|
+
kind: z.ZodLiteral<"named">;
|
|
189
|
+
declaredName: z.ZodString;
|
|
190
|
+
snapshotBaseName: z.ZodString;
|
|
191
|
+
occurrenceIndex: z.ZodNumber;
|
|
192
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
193
|
+
visualName: z.ZodString;
|
|
194
|
+
kind: z.ZodLiteral<"unnamed">;
|
|
195
|
+
occurrenceIndex: z.ZodNumber;
|
|
196
|
+
}, z.core.$strip>], "kind">>>;
|
|
102
197
|
error: z.ZodOptional<z.ZodString>;
|
|
103
198
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
104
199
|
}, z.core.$strip>>>;
|
|
@@ -159,6 +254,18 @@ export declare const TestEndDataSchema: z.ZodObject<{
|
|
|
159
254
|
path: z.ZodString;
|
|
160
255
|
contentType: z.ZodString;
|
|
161
256
|
}, z.core.$strip>>;
|
|
257
|
+
visualNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
258
|
+
visualDeclarations: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
259
|
+
visualName: z.ZodString;
|
|
260
|
+
kind: z.ZodLiteral<"named">;
|
|
261
|
+
declaredName: z.ZodString;
|
|
262
|
+
snapshotBaseName: z.ZodString;
|
|
263
|
+
occurrenceIndex: z.ZodNumber;
|
|
264
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
265
|
+
visualName: z.ZodString;
|
|
266
|
+
kind: z.ZodLiteral<"unnamed">;
|
|
267
|
+
occurrenceIndex: z.ZodNumber;
|
|
268
|
+
}, z.core.$strip>], "kind">>>>;
|
|
162
269
|
error: z.ZodOptional<z.ZodString>;
|
|
163
270
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
164
271
|
}, z.core.$strip>;
|
|
@@ -174,20 +281,42 @@ export declare const ReportDataSchema: z.ZodObject<{
|
|
|
174
281
|
retries: z.ZodOptional<z.ZodNumber>;
|
|
175
282
|
status: z.ZodOptional<z.ZodEnum<{
|
|
176
283
|
unknown: "unknown";
|
|
284
|
+
success: "success";
|
|
177
285
|
pending: "pending";
|
|
178
286
|
running: "running";
|
|
179
287
|
failed: "failed";
|
|
180
288
|
approved: "approved";
|
|
181
|
-
success: "success";
|
|
182
289
|
retrying: "retrying";
|
|
183
290
|
}>>;
|
|
184
291
|
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
185
292
|
status: z.ZodEnum<{
|
|
186
|
-
failed: "failed";
|
|
187
293
|
success: "success";
|
|
294
|
+
pending: "pending";
|
|
295
|
+
failed: "failed";
|
|
188
296
|
}>;
|
|
189
297
|
retries: z.ZodNumber;
|
|
190
|
-
images: z.
|
|
298
|
+
images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
299
|
+
actual: z.ZodOptional<z.ZodString>;
|
|
300
|
+
expect: z.ZodOptional<z.ZodString>;
|
|
301
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
302
|
+
error: z.ZodOptional<z.ZodString>;
|
|
303
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
304
|
+
comparison: "comparison";
|
|
305
|
+
"baseline-only": "baseline-only";
|
|
306
|
+
"declared-only": "declared-only";
|
|
307
|
+
}>>;
|
|
308
|
+
}, z.core.$strip>>>;
|
|
309
|
+
visualDeclarations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
310
|
+
visualName: z.ZodString;
|
|
311
|
+
kind: z.ZodLiteral<"named">;
|
|
312
|
+
declaredName: z.ZodString;
|
|
313
|
+
snapshotBaseName: z.ZodString;
|
|
314
|
+
occurrenceIndex: z.ZodNumber;
|
|
315
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
316
|
+
visualName: z.ZodString;
|
|
317
|
+
kind: z.ZodLiteral<"unnamed">;
|
|
318
|
+
occurrenceIndex: z.ZodNumber;
|
|
319
|
+
}, z.core.$strip>], "kind">>>;
|
|
191
320
|
error: z.ZodOptional<z.ZodString>;
|
|
192
321
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
193
322
|
}, z.core.$strip>>>;
|
|
@@ -217,20 +346,42 @@ export declare const LoadedReportDataSchema: z.ZodObject<{
|
|
|
217
346
|
retries: z.ZodOptional<z.ZodNumber>;
|
|
218
347
|
status: z.ZodOptional<z.ZodEnum<{
|
|
219
348
|
unknown: "unknown";
|
|
349
|
+
success: "success";
|
|
220
350
|
pending: "pending";
|
|
221
351
|
running: "running";
|
|
222
352
|
failed: "failed";
|
|
223
353
|
approved: "approved";
|
|
224
|
-
success: "success";
|
|
225
354
|
retrying: "retrying";
|
|
226
355
|
}>>;
|
|
227
356
|
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
228
357
|
status: z.ZodEnum<{
|
|
229
|
-
failed: "failed";
|
|
230
358
|
success: "success";
|
|
359
|
+
pending: "pending";
|
|
360
|
+
failed: "failed";
|
|
231
361
|
}>;
|
|
232
362
|
retries: z.ZodNumber;
|
|
233
|
-
images: z.
|
|
363
|
+
images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
364
|
+
actual: z.ZodOptional<z.ZodString>;
|
|
365
|
+
expect: z.ZodOptional<z.ZodString>;
|
|
366
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
367
|
+
error: z.ZodOptional<z.ZodString>;
|
|
368
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
369
|
+
comparison: "comparison";
|
|
370
|
+
"baseline-only": "baseline-only";
|
|
371
|
+
"declared-only": "declared-only";
|
|
372
|
+
}>>;
|
|
373
|
+
}, z.core.$strip>>>;
|
|
374
|
+
visualDeclarations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
375
|
+
visualName: z.ZodString;
|
|
376
|
+
kind: z.ZodLiteral<"named">;
|
|
377
|
+
declaredName: z.ZodString;
|
|
378
|
+
snapshotBaseName: z.ZodString;
|
|
379
|
+
occurrenceIndex: z.ZodNumber;
|
|
380
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
381
|
+
visualName: z.ZodString;
|
|
382
|
+
kind: z.ZodLiteral<"unnamed">;
|
|
383
|
+
occurrenceIndex: z.ZodNumber;
|
|
384
|
+
}, z.core.$strip>], "kind">>>;
|
|
234
385
|
error: z.ZodOptional<z.ZodString>;
|
|
235
386
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
236
387
|
}, z.core.$strip>>>;
|
|
@@ -291,20 +442,42 @@ export declare const ReportApiResponseSchema: z.ZodObject<{
|
|
|
291
442
|
retries: z.ZodOptional<z.ZodNumber>;
|
|
292
443
|
status: z.ZodOptional<z.ZodEnum<{
|
|
293
444
|
unknown: "unknown";
|
|
445
|
+
success: "success";
|
|
294
446
|
pending: "pending";
|
|
295
447
|
running: "running";
|
|
296
448
|
failed: "failed";
|
|
297
449
|
approved: "approved";
|
|
298
|
-
success: "success";
|
|
299
450
|
retrying: "retrying";
|
|
300
451
|
}>>;
|
|
301
452
|
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
302
453
|
status: z.ZodEnum<{
|
|
303
|
-
failed: "failed";
|
|
304
454
|
success: "success";
|
|
455
|
+
pending: "pending";
|
|
456
|
+
failed: "failed";
|
|
305
457
|
}>;
|
|
306
458
|
retries: z.ZodNumber;
|
|
307
|
-
images: z.
|
|
459
|
+
images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
460
|
+
actual: z.ZodOptional<z.ZodString>;
|
|
461
|
+
expect: z.ZodOptional<z.ZodString>;
|
|
462
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
463
|
+
error: z.ZodOptional<z.ZodString>;
|
|
464
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
465
|
+
comparison: "comparison";
|
|
466
|
+
"baseline-only": "baseline-only";
|
|
467
|
+
"declared-only": "declared-only";
|
|
468
|
+
}>>;
|
|
469
|
+
}, z.core.$strip>>>;
|
|
470
|
+
visualDeclarations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
471
|
+
visualName: z.ZodString;
|
|
472
|
+
kind: z.ZodLiteral<"named">;
|
|
473
|
+
declaredName: z.ZodString;
|
|
474
|
+
snapshotBaseName: z.ZodString;
|
|
475
|
+
occurrenceIndex: z.ZodNumber;
|
|
476
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
477
|
+
visualName: z.ZodString;
|
|
478
|
+
kind: z.ZodLiteral<"unnamed">;
|
|
479
|
+
occurrenceIndex: z.ZodNumber;
|
|
480
|
+
}, z.core.$strip>], "kind">>>;
|
|
308
481
|
error: z.ZodOptional<z.ZodString>;
|
|
309
482
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
310
483
|
}, z.core.$strip>>>;
|
|
@@ -333,20 +506,42 @@ export declare const ClientBootstrapDataSchema: z.ZodObject<{
|
|
|
333
506
|
retries: z.ZodOptional<z.ZodNumber>;
|
|
334
507
|
status: z.ZodOptional<z.ZodEnum<{
|
|
335
508
|
unknown: "unknown";
|
|
509
|
+
success: "success";
|
|
336
510
|
pending: "pending";
|
|
337
511
|
running: "running";
|
|
338
512
|
failed: "failed";
|
|
339
513
|
approved: "approved";
|
|
340
|
-
success: "success";
|
|
341
514
|
retrying: "retrying";
|
|
342
515
|
}>>;
|
|
343
516
|
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
344
517
|
status: z.ZodEnum<{
|
|
345
|
-
failed: "failed";
|
|
346
518
|
success: "success";
|
|
519
|
+
pending: "pending";
|
|
520
|
+
failed: "failed";
|
|
347
521
|
}>;
|
|
348
522
|
retries: z.ZodNumber;
|
|
349
|
-
images: z.
|
|
523
|
+
images: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
524
|
+
actual: z.ZodOptional<z.ZodString>;
|
|
525
|
+
expect: z.ZodOptional<z.ZodString>;
|
|
526
|
+
diff: z.ZodOptional<z.ZodString>;
|
|
527
|
+
error: z.ZodOptional<z.ZodString>;
|
|
528
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
529
|
+
comparison: "comparison";
|
|
530
|
+
"baseline-only": "baseline-only";
|
|
531
|
+
"declared-only": "declared-only";
|
|
532
|
+
}>>;
|
|
533
|
+
}, z.core.$strip>>>;
|
|
534
|
+
visualDeclarations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
535
|
+
visualName: z.ZodString;
|
|
536
|
+
kind: z.ZodLiteral<"named">;
|
|
537
|
+
declaredName: z.ZodString;
|
|
538
|
+
snapshotBaseName: z.ZodString;
|
|
539
|
+
occurrenceIndex: z.ZodNumber;
|
|
540
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
541
|
+
visualName: z.ZodString;
|
|
542
|
+
kind: z.ZodLiteral<"unnamed">;
|
|
543
|
+
occurrenceIndex: z.ZodNumber;
|
|
544
|
+
}, z.core.$strip>], "kind">>>;
|
|
350
545
|
error: z.ZodOptional<z.ZodString>;
|
|
351
546
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
352
547
|
}, z.core.$strip>>>;
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,cAAc;;;iBAGzB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MA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O,GAAG,CAAC,GAAG,IAAI,CAM1E;AAGD,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC,CAM5F"}
|
package/dist/server/app.d.ts
CHANGED
|
@@ -5,10 +5,16 @@ export interface ServerOptions {
|
|
|
5
5
|
reportPath?: string;
|
|
6
6
|
/** Absolute path to the built web UI assets directory, or its parent directory */
|
|
7
7
|
staticDir?: string;
|
|
8
|
+
configDir?: string;
|
|
9
|
+
playwrightTestDir?: string;
|
|
10
|
+
playwrightSnapshotDir?: string;
|
|
11
|
+
playwrightSnapshotPathTemplate?: string;
|
|
12
|
+
playwrightToHaveScreenshotPathTemplate?: string;
|
|
8
13
|
}
|
|
9
14
|
export interface ServerApp {
|
|
10
15
|
port: number;
|
|
11
16
|
wsClients: Set<RuntimeWebSocket>;
|
|
17
|
+
close: () => void;
|
|
12
18
|
handleRequest: (req: Request) => Promise<Response>;
|
|
13
19
|
handleWebSocketMessage: (message: string) => Promise<void>;
|
|
14
20
|
}
|
package/dist/server/app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/server/app.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/server/app.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAI/C,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,kFAAkF;IAClF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,8BAA8B,CAAC,EAAE,MAAM,CAAA;IACvC,sCAAsC,CAAC,EAAE,MAAM,CAAA;CAChD;AAUD,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAA;IAChC,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,aAAa,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;IAClD,sBAAsB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3D;AAmMD,wBAAsB,eAAe,CAAC,OAAO,GAAE,aAAkB,GAAG,OAAO,CAAC,SAAS,CAAC,CAwCrF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function createDebouncedRefresh(reload: () => Promise<void>, delayMs?: number): () => void;
|
|
2
|
+
interface ReportWatchOptions {
|
|
3
|
+
offlineReportDir: string;
|
|
4
|
+
screenshotDir: string;
|
|
5
|
+
scheduleRefresh: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function watchReportArtifacts(options: ReportWatchOptions): Promise<() => void>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=report-watch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-watch.d.ts","sourceRoot":"","sources":["../../src/server/report-watch.ts"],"names":[],"mappings":"AAOA,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,SAAK,GAAG,MAAM,IAAI,CAa5F;AAED,UAAU,kBAAkB;IAC1B,gBAAgB,EAAE,MAAM,CAAA;IACxB,aAAa,EAAE,MAAM,CAAA;IACrB,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B;AAsFD,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC,CAgC3F"}
|
package/dist/server/routes.d.ts
CHANGED
|
@@ -9,6 +9,13 @@ export interface RoutesContext {
|
|
|
9
9
|
};
|
|
10
10
|
staticDir: string;
|
|
11
11
|
saveReport: () => Promise<void>;
|
|
12
|
+
approvalRouting?: {
|
|
13
|
+
configDir: string;
|
|
14
|
+
playwrightTestDir?: string;
|
|
15
|
+
playwrightSnapshotDir?: string;
|
|
16
|
+
playwrightSnapshotPathTemplate?: string;
|
|
17
|
+
playwrightToHaveScreenshotPathTemplate?: string;
|
|
18
|
+
};
|
|
12
19
|
}
|
|
13
20
|
export declare const LIVE_UPDATES_WEBSOCKET_PATH = "/";
|
|
14
21
|
export declare function isWebSocketUpgradeRequest(req: Request): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/server/routes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/server/routes.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAG3C,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE;QACV,SAAS,EAAE,OAAO,CAAA;QAClB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;QAC/B,QAAQ,EAAE,MAAM,EAAE,CAAA;QAClB,YAAY,EAAE,OAAO,CAAA;QACrB,aAAa,EAAE,MAAM,CAAA;KACtB,CAAA;IACD,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC/B,eAAe,CAAC,EAAE;QAChB,SAAS,EAAE,MAAM,CAAA;QACjB,iBAAiB,CAAC,EAAE,MAAM,CAAA;QAC1B,qBAAqB,CAAC,EAAE,MAAM,CAAA;QAC9B,8BAA8B,CAAC,EAAE,MAAM,CAAA;QACvC,sCAAsC,CAAC,EAAE,MAAM,CAAA;KAChD,CAAA;CACF;AAED,eAAO,MAAM,2BAA2B,MAAM,CAAA;AAE9C,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAK/D;AAiOD,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAwCrF"}
|