@ripplo/testing 0.6.1 → 0.7.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.
Files changed (44) hide show
  1. package/DSL.md +355 -0
  2. package/LICENSE.md +1 -0
  3. package/README.md +47 -273
  4. package/dist/engine-BT7hUouB.d.ts +1095 -0
  5. package/dist/express.d.ts +7 -9
  6. package/dist/express.js +422 -48
  7. package/dist/index.d.ts +122 -59
  8. package/dist/index.js +1630 -1126
  9. package/package.json +31 -113
  10. package/dist/actions.d.ts +0 -260
  11. package/dist/actions.js +0 -177
  12. package/dist/assert.d.ts +0 -188
  13. package/dist/assert.js +0 -111
  14. package/dist/builder-SsgqYqSC.d.ts +0 -156
  15. package/dist/chunk-2YLI7VD4.js +0 -65
  16. package/dist/chunk-4MGIQFAJ.js +0 -16
  17. package/dist/chunk-DCJBLS2U.js +0 -26
  18. package/dist/chunk-MGATMMCZ.js +0 -16
  19. package/dist/chunk-XO36IU66.js +0 -88
  20. package/dist/chunk-YFOTJIVF.js +0 -134
  21. package/dist/chunk-YQAEOH5W.js +0 -111
  22. package/dist/compiler.d.ts +0 -32
  23. package/dist/compiler.js +0 -8
  24. package/dist/control.d.ts +0 -45
  25. package/dist/control.js +0 -17
  26. package/dist/elysia.d.ts +0 -78
  27. package/dist/elysia.js +0 -114
  28. package/dist/engine-BOqzK_go.d.ts +0 -61
  29. package/dist/fastify.d.ts +0 -14
  30. package/dist/fastify.js +0 -79
  31. package/dist/hono.d.ts +0 -19
  32. package/dist/hono.js +0 -89
  33. package/dist/koa.d.ts +0 -14
  34. package/dist/koa.js +0 -135
  35. package/dist/locators.d.ts +0 -40
  36. package/dist/locators.js +0 -11
  37. package/dist/lockfile.d.ts +0 -722
  38. package/dist/lockfile.js +0 -707
  39. package/dist/nestjs.d.ts +0 -17
  40. package/dist/nestjs.js +0 -139
  41. package/dist/nextjs.d.ts +0 -14
  42. package/dist/nextjs.js +0 -137
  43. package/dist/step-De52hTLd.d.ts +0 -19
  44. package/dist/types-BzZrl65Z.d.ts +0 -115
@@ -1,722 +0,0 @@
1
- import { Codec } from '@ripplo/spec';
2
- import { z } from 'zod';
3
- import { CompileResult } from './compiler.js';
4
- import './builder-SsgqYqSC.js';
5
- import './types-BzZrl65Z.js';
6
- import './step-De52hTLd.js';
7
-
8
- declare const LOCKFILE_RELATIVE_PATH = ".ripplo/ripplo.lock";
9
- declare const FIXTURES_RELATIVE_PATH = ".ripplo/fixtures";
10
- declare const fixtureEntrySchema: z.ZodObject<{
11
- sha256: z.ZodString;
12
- size: z.ZodNumber;
13
- }, z.core.$strip>;
14
- type FixtureEntry = z.infer<typeof fixtureEntrySchema>;
15
- declare const lockfileBodyV2Schema: z.ZodObject<{
16
- fixtures: z.ZodRecord<z.ZodString, z.ZodObject<{
17
- sha256: z.ZodString;
18
- size: z.ZodNumber;
19
- }, z.core.$strip>>;
20
- observers: z.ZodRecord<z.ZodString, z.ZodObject<{
21
- budget: z.ZodEnum<{
22
- fast: "fast";
23
- slow: "slow";
24
- async: "async";
25
- }>;
26
- description: z.ZodString;
27
- }, z.core.$strip>>;
28
- preconditions: z.ZodRecord<z.ZodString, z.ZodObject<{
29
- depends: z.ZodOptional<z.ZodArray<z.ZodString>>;
30
- description: z.ZodString;
31
- returns: z.ZodOptional<z.ZodArray<z.ZodString>>;
32
- }, z.core.$strip>>;
33
- tests: z.ZodArray<z.ZodObject<{
34
- coverage: z.ZodDefault<z.ZodArray<z.ZodString>>;
35
- expectedOutcome: z.ZodString;
36
- name: z.ZodString;
37
- preconditions: z.ZodArray<z.ZodString>;
38
- requiresKeys: z.ZodRecord<z.ZodString, z.ZodString>;
39
- slug: z.ZodString;
40
- sourcePath: z.ZodOptional<z.ZodString>;
41
- spec: z.ZodObject<{
42
- entryNode: z.ZodString;
43
- nodes: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
44
- type: z.ZodLiteral<"goto">;
45
- url: z.ZodDiscriminatedUnion<[z.ZodObject<{
46
- type: z.ZodLiteral<"static">;
47
- value: z.ZodString;
48
- }, z.core.$strip>, z.ZodObject<{
49
- name: z.ZodString;
50
- type: z.ZodLiteral<"variable">;
51
- }, z.core.$strip>], "type">;
52
- id: z.ZodString;
53
- label: z.ZodOptional<z.ZodString>;
54
- next: z.ZodOptional<z.ZodString>;
55
- uiOnly: z.ZodOptional<z.ZodBoolean>;
56
- }, z.core.$strip>, z.ZodObject<{
57
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
58
- by: z.ZodLiteral<"testId">;
59
- value: z.ZodString;
60
- }, z.core.$strip>, z.ZodObject<{
61
- by: z.ZodLiteral<"role">;
62
- name: z.ZodOptional<z.ZodString>;
63
- role: z.ZodString;
64
- }, z.core.$strip>], "by">;
65
- modifier: z.ZodOptional<z.ZodEnum<{
66
- Alt: "Alt";
67
- Control: "Control";
68
- Meta: "Meta";
69
- Shift: "Shift";
70
- }>>;
71
- type: z.ZodLiteral<"click">;
72
- id: z.ZodString;
73
- label: z.ZodOptional<z.ZodString>;
74
- next: z.ZodOptional<z.ZodString>;
75
- uiOnly: z.ZodOptional<z.ZodBoolean>;
76
- }, z.core.$strip>, z.ZodObject<{
77
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
78
- by: z.ZodLiteral<"testId">;
79
- value: z.ZodString;
80
- }, z.core.$strip>, z.ZodObject<{
81
- by: z.ZodLiteral<"role">;
82
- name: z.ZodOptional<z.ZodString>;
83
- role: z.ZodString;
84
- }, z.core.$strip>], "by">;
85
- type: z.ZodLiteral<"fill">;
86
- value: z.ZodDiscriminatedUnion<[z.ZodObject<{
87
- type: z.ZodLiteral<"static">;
88
- value: z.ZodString;
89
- }, z.core.$strip>, z.ZodObject<{
90
- name: z.ZodString;
91
- type: z.ZodLiteral<"variable">;
92
- }, z.core.$strip>], "type">;
93
- id: z.ZodString;
94
- label: z.ZodOptional<z.ZodString>;
95
- next: z.ZodOptional<z.ZodString>;
96
- uiOnly: z.ZodOptional<z.ZodBoolean>;
97
- }, z.core.$strip>, z.ZodObject<{
98
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
99
- by: z.ZodLiteral<"testId">;
100
- value: z.ZodString;
101
- }, z.core.$strip>, z.ZodObject<{
102
- by: z.ZodLiteral<"role">;
103
- name: z.ZodOptional<z.ZodString>;
104
- role: z.ZodString;
105
- }, z.core.$strip>], "by">;
106
- type: z.ZodLiteral<"select">;
107
- value: z.ZodDiscriminatedUnion<[z.ZodObject<{
108
- type: z.ZodLiteral<"static">;
109
- value: z.ZodString;
110
- }, z.core.$strip>, z.ZodObject<{
111
- name: z.ZodString;
112
- type: z.ZodLiteral<"variable">;
113
- }, z.core.$strip>], "type">;
114
- id: z.ZodString;
115
- label: z.ZodOptional<z.ZodString>;
116
- next: z.ZodOptional<z.ZodString>;
117
- uiOnly: z.ZodOptional<z.ZodBoolean>;
118
- }, z.core.$strip>, z.ZodObject<{
119
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
120
- by: z.ZodLiteral<"testId">;
121
- value: z.ZodString;
122
- }, z.core.$strip>, z.ZodObject<{
123
- by: z.ZodLiteral<"role">;
124
- name: z.ZodOptional<z.ZodString>;
125
- role: z.ZodString;
126
- }, z.core.$strip>], "by">;
127
- type: z.ZodLiteral<"hover">;
128
- id: z.ZodString;
129
- label: z.ZodOptional<z.ZodString>;
130
- next: z.ZodOptional<z.ZodString>;
131
- uiOnly: z.ZodOptional<z.ZodBoolean>;
132
- }, z.core.$strip>, z.ZodObject<{
133
- key: z.ZodString;
134
- locator: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
135
- by: z.ZodLiteral<"testId">;
136
- value: z.ZodString;
137
- }, z.core.$strip>, z.ZodObject<{
138
- by: z.ZodLiteral<"role">;
139
- name: z.ZodOptional<z.ZodString>;
140
- role: z.ZodString;
141
- }, z.core.$strip>], "by">>;
142
- type: z.ZodLiteral<"press">;
143
- id: z.ZodString;
144
- label: z.ZodOptional<z.ZodString>;
145
- next: z.ZodOptional<z.ZodString>;
146
- uiOnly: z.ZodOptional<z.ZodBoolean>;
147
- }, z.core.$strip>, z.ZodObject<{
148
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
149
- by: z.ZodLiteral<"testId">;
150
- value: z.ZodString;
151
- }, z.core.$strip>, z.ZodObject<{
152
- by: z.ZodLiteral<"role">;
153
- name: z.ZodOptional<z.ZodString>;
154
- role: z.ZodString;
155
- }, z.core.$strip>], "by">;
156
- type: z.ZodLiteral<"check">;
157
- id: z.ZodString;
158
- label: z.ZodOptional<z.ZodString>;
159
- next: z.ZodOptional<z.ZodString>;
160
- uiOnly: z.ZodOptional<z.ZodBoolean>;
161
- }, z.core.$strip>, z.ZodObject<{
162
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
163
- by: z.ZodLiteral<"testId">;
164
- value: z.ZodString;
165
- }, z.core.$strip>, z.ZodObject<{
166
- by: z.ZodLiteral<"role">;
167
- name: z.ZodOptional<z.ZodString>;
168
- role: z.ZodString;
169
- }, z.core.$strip>], "by">;
170
- type: z.ZodLiteral<"uncheck">;
171
- id: z.ZodString;
172
- label: z.ZodOptional<z.ZodString>;
173
- next: z.ZodOptional<z.ZodString>;
174
- uiOnly: z.ZodOptional<z.ZodBoolean>;
175
- }, z.core.$strip>, z.ZodObject<{
176
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
177
- by: z.ZodLiteral<"testId">;
178
- value: z.ZodString;
179
- }, z.core.$strip>, z.ZodObject<{
180
- by: z.ZodLiteral<"role">;
181
- name: z.ZodOptional<z.ZodString>;
182
- role: z.ZodString;
183
- }, z.core.$strip>], "by">;
184
- type: z.ZodLiteral<"assertVisible">;
185
- id: z.ZodString;
186
- label: z.ZodOptional<z.ZodString>;
187
- next: z.ZodOptional<z.ZodString>;
188
- uiOnly: z.ZodOptional<z.ZodBoolean>;
189
- }, z.core.$strip>, z.ZodObject<{
190
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
191
- by: z.ZodLiteral<"testId">;
192
- value: z.ZodString;
193
- }, z.core.$strip>, z.ZodObject<{
194
- by: z.ZodLiteral<"role">;
195
- name: z.ZodOptional<z.ZodString>;
196
- role: z.ZodString;
197
- }, z.core.$strip>], "by">;
198
- type: z.ZodLiteral<"assertNotVisible">;
199
- id: z.ZodString;
200
- label: z.ZodOptional<z.ZodString>;
201
- next: z.ZodOptional<z.ZodString>;
202
- uiOnly: z.ZodOptional<z.ZodBoolean>;
203
- }, z.core.$strip>, z.ZodObject<{
204
- expected: z.ZodDiscriminatedUnion<[z.ZodObject<{
205
- type: z.ZodLiteral<"static">;
206
- value: z.ZodString;
207
- }, z.core.$strip>, z.ZodObject<{
208
- name: z.ZodString;
209
- type: z.ZodLiteral<"variable">;
210
- }, z.core.$strip>], "type">;
211
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
212
- by: z.ZodLiteral<"testId">;
213
- value: z.ZodString;
214
- }, z.core.$strip>, z.ZodObject<{
215
- by: z.ZodLiteral<"role">;
216
- name: z.ZodOptional<z.ZodString>;
217
- role: z.ZodString;
218
- }, z.core.$strip>], "by">;
219
- operator: z.ZodEnum<{
220
- equals: "equals";
221
- notEquals: "notEquals";
222
- contains: "contains";
223
- startsWith: "startsWith";
224
- endsWith: "endsWith";
225
- matches: "matches";
226
- }>;
227
- type: z.ZodLiteral<"assertText">;
228
- id: z.ZodString;
229
- label: z.ZodOptional<z.ZodString>;
230
- next: z.ZodOptional<z.ZodString>;
231
- uiOnly: z.ZodOptional<z.ZodBoolean>;
232
- }, z.core.$strip>, z.ZodObject<{
233
- expected: z.ZodDiscriminatedUnion<[z.ZodObject<{
234
- type: z.ZodLiteral<"static">;
235
- value: z.ZodString;
236
- }, z.core.$strip>, z.ZodObject<{
237
- name: z.ZodString;
238
- type: z.ZodLiteral<"variable">;
239
- }, z.core.$strip>], "type">;
240
- operator: z.ZodEnum<{
241
- equals: "equals";
242
- notEquals: "notEquals";
243
- contains: "contains";
244
- startsWith: "startsWith";
245
- endsWith: "endsWith";
246
- matches: "matches";
247
- }>;
248
- type: z.ZodLiteral<"assertUrl">;
249
- id: z.ZodString;
250
- label: z.ZodOptional<z.ZodString>;
251
- next: z.ZodOptional<z.ZodString>;
252
- uiOnly: z.ZodOptional<z.ZodBoolean>;
253
- }, z.core.$strip>, z.ZodObject<{
254
- expected: z.ZodDiscriminatedUnion<[z.ZodObject<{
255
- type: z.ZodLiteral<"static">;
256
- value: z.ZodNumber;
257
- }, z.core.$strip>, z.ZodObject<{
258
- name: z.ZodString;
259
- type: z.ZodLiteral<"variable">;
260
- }, z.core.$strip>], "type">;
261
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
262
- by: z.ZodLiteral<"testId">;
263
- value: z.ZodString;
264
- }, z.core.$strip>, z.ZodObject<{
265
- by: z.ZodLiteral<"role">;
266
- name: z.ZodOptional<z.ZodString>;
267
- role: z.ZodString;
268
- }, z.core.$strip>], "by">;
269
- operator: z.ZodEnum<{
270
- equals: "equals";
271
- notEquals: "notEquals";
272
- greaterThan: "greaterThan";
273
- greaterThanOrEqual: "greaterThanOrEqual";
274
- lessThan: "lessThan";
275
- lessThanOrEqual: "lessThanOrEqual";
276
- }>;
277
- type: z.ZodLiteral<"assertCount">;
278
- id: z.ZodString;
279
- label: z.ZodOptional<z.ZodString>;
280
- next: z.ZodOptional<z.ZodString>;
281
- uiOnly: z.ZodOptional<z.ZodBoolean>;
282
- }, z.core.$strip>, z.ZodObject<{
283
- expected: z.ZodDiscriminatedUnion<[z.ZodObject<{
284
- type: z.ZodLiteral<"static">;
285
- value: z.ZodString;
286
- }, z.core.$strip>, z.ZodObject<{
287
- name: z.ZodString;
288
- type: z.ZodLiteral<"variable">;
289
- }, z.core.$strip>], "type">;
290
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
291
- by: z.ZodLiteral<"testId">;
292
- value: z.ZodString;
293
- }, z.core.$strip>, z.ZodObject<{
294
- by: z.ZodLiteral<"role">;
295
- name: z.ZodOptional<z.ZodString>;
296
- role: z.ZodString;
297
- }, z.core.$strip>], "by">;
298
- operator: z.ZodEnum<{
299
- equals: "equals";
300
- notEquals: "notEquals";
301
- contains: "contains";
302
- startsWith: "startsWith";
303
- endsWith: "endsWith";
304
- matches: "matches";
305
- }>;
306
- type: z.ZodLiteral<"assertValue">;
307
- id: z.ZodString;
308
- label: z.ZodOptional<z.ZodString>;
309
- next: z.ZodOptional<z.ZodString>;
310
- uiOnly: z.ZodOptional<z.ZodBoolean>;
311
- }, z.core.$strip>, z.ZodObject<{
312
- attribute: z.ZodString;
313
- expected: z.ZodDiscriminatedUnion<[z.ZodObject<{
314
- type: z.ZodLiteral<"static">;
315
- value: z.ZodString;
316
- }, z.core.$strip>, z.ZodObject<{
317
- name: z.ZodString;
318
- type: z.ZodLiteral<"variable">;
319
- }, z.core.$strip>], "type">;
320
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
321
- by: z.ZodLiteral<"testId">;
322
- value: z.ZodString;
323
- }, z.core.$strip>, z.ZodObject<{
324
- by: z.ZodLiteral<"role">;
325
- name: z.ZodOptional<z.ZodString>;
326
- role: z.ZodString;
327
- }, z.core.$strip>], "by">;
328
- operator: z.ZodEnum<{
329
- equals: "equals";
330
- notEquals: "notEquals";
331
- contains: "contains";
332
- startsWith: "startsWith";
333
- endsWith: "endsWith";
334
- matches: "matches";
335
- }>;
336
- type: z.ZodLiteral<"assertAttribute">;
337
- id: z.ZodString;
338
- label: z.ZodOptional<z.ZodString>;
339
- next: z.ZodOptional<z.ZodString>;
340
- uiOnly: z.ZodOptional<z.ZodBoolean>;
341
- }, z.core.$strip>, z.ZodObject<{
342
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
343
- by: z.ZodLiteral<"testId">;
344
- value: z.ZodString;
345
- }, z.core.$strip>, z.ZodObject<{
346
- by: z.ZodLiteral<"role">;
347
- name: z.ZodOptional<z.ZodString>;
348
- role: z.ZodString;
349
- }, z.core.$strip>], "by">;
350
- type: z.ZodLiteral<"assertEnabled">;
351
- id: z.ZodString;
352
- label: z.ZodOptional<z.ZodString>;
353
- next: z.ZodOptional<z.ZodString>;
354
- uiOnly: z.ZodOptional<z.ZodBoolean>;
355
- }, z.core.$strip>, z.ZodObject<{
356
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
357
- by: z.ZodLiteral<"testId">;
358
- value: z.ZodString;
359
- }, z.core.$strip>, z.ZodObject<{
360
- by: z.ZodLiteral<"role">;
361
- name: z.ZodOptional<z.ZodString>;
362
- role: z.ZodString;
363
- }, z.core.$strip>], "by">;
364
- type: z.ZodLiteral<"assertDisabled">;
365
- id: z.ZodString;
366
- label: z.ZodOptional<z.ZodString>;
367
- next: z.ZodOptional<z.ZodString>;
368
- uiOnly: z.ZodOptional<z.ZodBoolean>;
369
- }, z.core.$strip>, z.ZodObject<{
370
- height: z.ZodNumber;
371
- type: z.ZodLiteral<"setViewport">;
372
- width: z.ZodNumber;
373
- id: z.ZodString;
374
- label: z.ZodOptional<z.ZodString>;
375
- next: z.ZodOptional<z.ZodString>;
376
- uiOnly: z.ZodOptional<z.ZodBoolean>;
377
- }, z.core.$strip>, z.ZodObject<{
378
- message: z.ZodString;
379
- type: z.ZodLiteral<"fail">;
380
- id: z.ZodString;
381
- label: z.ZodOptional<z.ZodString>;
382
- next: z.ZodOptional<z.ZodString>;
383
- uiOnly: z.ZodOptional<z.ZodBoolean>;
384
- }, z.core.$strip>, z.ZodObject<{
385
- type: z.ZodLiteral<"setVariable">;
386
- value: z.ZodDiscriminatedUnion<[z.ZodObject<{
387
- type: z.ZodLiteral<"static">;
388
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
389
- }, z.core.$strip>, z.ZodObject<{
390
- name: z.ZodString;
391
- type: z.ZodLiteral<"variable">;
392
- }, z.core.$strip>], "type">;
393
- variable: z.ZodString;
394
- id: z.ZodString;
395
- label: z.ZodOptional<z.ZodString>;
396
- next: z.ZodOptional<z.ZodString>;
397
- uiOnly: z.ZodOptional<z.ZodBoolean>;
398
- }, z.core.$strip>, z.ZodObject<{
399
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
400
- by: z.ZodLiteral<"testId">;
401
- value: z.ZodString;
402
- }, z.core.$strip>, z.ZodObject<{
403
- by: z.ZodLiteral<"role">;
404
- name: z.ZodOptional<z.ZodString>;
405
- role: z.ZodString;
406
- }, z.core.$strip>], "by">;
407
- type: z.ZodLiteral<"extractText">;
408
- variable: z.ZodString;
409
- id: z.ZodString;
410
- label: z.ZodOptional<z.ZodString>;
411
- next: z.ZodOptional<z.ZodString>;
412
- uiOnly: z.ZodOptional<z.ZodBoolean>;
413
- }, z.core.$strip>, z.ZodObject<{
414
- files: z.ZodArray<z.ZodString>;
415
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
416
- by: z.ZodLiteral<"testId">;
417
- value: z.ZodString;
418
- }, z.core.$strip>, z.ZodObject<{
419
- by: z.ZodLiteral<"role">;
420
- name: z.ZodOptional<z.ZodString>;
421
- role: z.ZodString;
422
- }, z.core.$strip>], "by">;
423
- type: z.ZodLiteral<"upload">;
424
- id: z.ZodString;
425
- label: z.ZodOptional<z.ZodString>;
426
- next: z.ZodOptional<z.ZodString>;
427
- uiOnly: z.ZodOptional<z.ZodBoolean>;
428
- }, z.core.$strip>, z.ZodObject<{
429
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
430
- by: z.ZodLiteral<"testId">;
431
- value: z.ZodString;
432
- }, z.core.$strip>, z.ZodObject<{
433
- by: z.ZodLiteral<"role">;
434
- name: z.ZodOptional<z.ZodString>;
435
- role: z.ZodString;
436
- }, z.core.$strip>], "by">;
437
- type: z.ZodLiteral<"dblclick">;
438
- id: z.ZodString;
439
- label: z.ZodOptional<z.ZodString>;
440
- next: z.ZodOptional<z.ZodString>;
441
- uiOnly: z.ZodOptional<z.ZodBoolean>;
442
- }, z.core.$strip>, z.ZodObject<{
443
- source: z.ZodDiscriminatedUnion<[z.ZodObject<{
444
- by: z.ZodLiteral<"testId">;
445
- value: z.ZodString;
446
- }, z.core.$strip>, z.ZodObject<{
447
- by: z.ZodLiteral<"role">;
448
- name: z.ZodOptional<z.ZodString>;
449
- role: z.ZodString;
450
- }, z.core.$strip>], "by">;
451
- target: z.ZodDiscriminatedUnion<[z.ZodObject<{
452
- by: z.ZodLiteral<"testId">;
453
- value: z.ZodString;
454
- }, z.core.$strip>, z.ZodObject<{
455
- by: z.ZodLiteral<"role">;
456
- name: z.ZodOptional<z.ZodString>;
457
- role: z.ZodString;
458
- }, z.core.$strip>], "by">;
459
- type: z.ZodLiteral<"drag">;
460
- id: z.ZodString;
461
- label: z.ZodOptional<z.ZodString>;
462
- next: z.ZodOptional<z.ZodString>;
463
- uiOnly: z.ZodOptional<z.ZodBoolean>;
464
- }, z.core.$strip>, z.ZodObject<{
465
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
466
- by: z.ZodLiteral<"testId">;
467
- value: z.ZodString;
468
- }, z.core.$strip>, z.ZodObject<{
469
- by: z.ZodLiteral<"role">;
470
- name: z.ZodOptional<z.ZodString>;
471
- role: z.ZodString;
472
- }, z.core.$strip>], "by">;
473
- type: z.ZodLiteral<"scrollIntoView">;
474
- id: z.ZodString;
475
- label: z.ZodOptional<z.ZodString>;
476
- next: z.ZodOptional<z.ZodString>;
477
- uiOnly: z.ZodOptional<z.ZodBoolean>;
478
- }, z.core.$strip>, z.ZodObject<{
479
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
480
- by: z.ZodLiteral<"testId">;
481
- value: z.ZodString;
482
- }, z.core.$strip>, z.ZodObject<{
483
- by: z.ZodLiteral<"role">;
484
- name: z.ZodOptional<z.ZodString>;
485
- role: z.ZodString;
486
- }, z.core.$strip>], "by">;
487
- type: z.ZodLiteral<"type">;
488
- value: z.ZodDiscriminatedUnion<[z.ZodObject<{
489
- type: z.ZodLiteral<"static">;
490
- value: z.ZodString;
491
- }, z.core.$strip>, z.ZodObject<{
492
- name: z.ZodString;
493
- type: z.ZodLiteral<"variable">;
494
- }, z.core.$strip>], "type">;
495
- id: z.ZodString;
496
- label: z.ZodOptional<z.ZodString>;
497
- next: z.ZodOptional<z.ZodString>;
498
- uiOnly: z.ZodOptional<z.ZodBoolean>;
499
- }, z.core.$strip>, z.ZodObject<{
500
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
501
- by: z.ZodLiteral<"testId">;
502
- value: z.ZodString;
503
- }, z.core.$strip>, z.ZodObject<{
504
- by: z.ZodLiteral<"role">;
505
- name: z.ZodOptional<z.ZodString>;
506
- role: z.ZodString;
507
- }, z.core.$strip>], "by">;
508
- type: z.ZodLiteral<"focus">;
509
- id: z.ZodString;
510
- label: z.ZodOptional<z.ZodString>;
511
- next: z.ZodOptional<z.ZodString>;
512
- uiOnly: z.ZodOptional<z.ZodBoolean>;
513
- }, z.core.$strip>, z.ZodObject<{
514
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
515
- by: z.ZodLiteral<"testId">;
516
- value: z.ZodString;
517
- }, z.core.$strip>, z.ZodObject<{
518
- by: z.ZodLiteral<"role">;
519
- name: z.ZodOptional<z.ZodString>;
520
- role: z.ZodString;
521
- }, z.core.$strip>], "by">;
522
- type: z.ZodLiteral<"clear">;
523
- id: z.ZodString;
524
- label: z.ZodOptional<z.ZodString>;
525
- next: z.ZodOptional<z.ZodString>;
526
- uiOnly: z.ZodOptional<z.ZodBoolean>;
527
- }, z.core.$strip>, z.ZodObject<{
528
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
529
- by: z.ZodLiteral<"testId">;
530
- value: z.ZodString;
531
- }, z.core.$strip>, z.ZodObject<{
532
- by: z.ZodLiteral<"role">;
533
- name: z.ZodOptional<z.ZodString>;
534
- role: z.ZodString;
535
- }, z.core.$strip>], "by">;
536
- type: z.ZodLiteral<"rightClick">;
537
- id: z.ZodString;
538
- label: z.ZodOptional<z.ZodString>;
539
- next: z.ZodOptional<z.ZodString>;
540
- uiOnly: z.ZodOptional<z.ZodBoolean>;
541
- }, z.core.$strip>, z.ZodObject<{
542
- action: z.ZodEnum<{
543
- accept: "accept";
544
- dismiss: "dismiss";
545
- }>;
546
- promptText: z.ZodOptional<z.ZodString>;
547
- type: z.ZodLiteral<"handleDialog">;
548
- id: z.ZodString;
549
- label: z.ZodOptional<z.ZodString>;
550
- next: z.ZodOptional<z.ZodString>;
551
- uiOnly: z.ZodOptional<z.ZodBoolean>;
552
- }, z.core.$strip>, z.ZodObject<{
553
- action: z.ZodEnum<{
554
- read: "read";
555
- write: "write";
556
- }>;
557
- type: z.ZodLiteral<"clipboard">;
558
- value: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
559
- type: z.ZodLiteral<"static">;
560
- value: z.ZodString;
561
- }, z.core.$strip>, z.ZodObject<{
562
- name: z.ZodString;
563
- type: z.ZodLiteral<"variable">;
564
- }, z.core.$strip>], "type">>;
565
- variable: z.ZodOptional<z.ZodString>;
566
- id: z.ZodString;
567
- label: z.ZodOptional<z.ZodString>;
568
- next: z.ZodOptional<z.ZodString>;
569
- uiOnly: z.ZodOptional<z.ZodBoolean>;
570
- }, z.core.$strip>, z.ZodObject<{
571
- permission: z.ZodString;
572
- state: z.ZodEnum<{
573
- granted: "granted";
574
- prompt: "prompt";
575
- }>;
576
- type: z.ZodLiteral<"setPermission">;
577
- id: z.ZodString;
578
- label: z.ZodOptional<z.ZodString>;
579
- next: z.ZodOptional<z.ZodString>;
580
- uiOnly: z.ZodOptional<z.ZodBoolean>;
581
- }, z.core.$strip>, z.ZodObject<{
582
- expected: z.ZodDiscriminatedUnion<[z.ZodObject<{
583
- type: z.ZodLiteral<"static">;
584
- value: z.ZodString;
585
- }, z.core.$strip>, z.ZodObject<{
586
- name: z.ZodString;
587
- type: z.ZodLiteral<"variable">;
588
- }, z.core.$strip>], "type">;
589
- operator: z.ZodEnum<{
590
- equals: "equals";
591
- notEquals: "notEquals";
592
- contains: "contains";
593
- startsWith: "startsWith";
594
- endsWith: "endsWith";
595
- matches: "matches";
596
- }>;
597
- type: z.ZodLiteral<"assertTitle">;
598
- id: z.ZodString;
599
- label: z.ZodOptional<z.ZodString>;
600
- next: z.ZodOptional<z.ZodString>;
601
- uiOnly: z.ZodOptional<z.ZodBoolean>;
602
- }, z.core.$strip>, z.ZodObject<{
603
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
604
- by: z.ZodLiteral<"testId">;
605
- value: z.ZodString;
606
- }, z.core.$strip>, z.ZodObject<{
607
- by: z.ZodLiteral<"role">;
608
- name: z.ZodOptional<z.ZodString>;
609
- role: z.ZodString;
610
- }, z.core.$strip>], "by">;
611
- type: z.ZodLiteral<"assertChecked">;
612
- id: z.ZodString;
613
- label: z.ZodOptional<z.ZodString>;
614
- next: z.ZodOptional<z.ZodString>;
615
- uiOnly: z.ZodOptional<z.ZodBoolean>;
616
- }, z.core.$strip>, z.ZodObject<{
617
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
618
- by: z.ZodLiteral<"testId">;
619
- value: z.ZodString;
620
- }, z.core.$strip>, z.ZodObject<{
621
- by: z.ZodLiteral<"role">;
622
- name: z.ZodOptional<z.ZodString>;
623
- role: z.ZodString;
624
- }, z.core.$strip>], "by">;
625
- type: z.ZodLiteral<"assertNotChecked">;
626
- id: z.ZodString;
627
- label: z.ZodOptional<z.ZodString>;
628
- next: z.ZodOptional<z.ZodString>;
629
- uiOnly: z.ZodOptional<z.ZodBoolean>;
630
- }, z.core.$strip>, z.ZodObject<{
631
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
632
- by: z.ZodLiteral<"testId">;
633
- value: z.ZodString;
634
- }, z.core.$strip>, z.ZodObject<{
635
- by: z.ZodLiteral<"role">;
636
- name: z.ZodOptional<z.ZodString>;
637
- role: z.ZodString;
638
- }, z.core.$strip>], "by">;
639
- type: z.ZodLiteral<"assertFocused">;
640
- id: z.ZodString;
641
- label: z.ZodOptional<z.ZodString>;
642
- next: z.ZodOptional<z.ZodString>;
643
- uiOnly: z.ZodOptional<z.ZodBoolean>;
644
- }, z.core.$strip>, z.ZodObject<{
645
- locator: z.ZodDiscriminatedUnion<[z.ZodObject<{
646
- by: z.ZodLiteral<"testId">;
647
- value: z.ZodString;
648
- }, z.core.$strip>, z.ZodObject<{
649
- by: z.ZodLiteral<"role">;
650
- name: z.ZodOptional<z.ZodString>;
651
- role: z.ZodString;
652
- }, z.core.$strip>], "by">;
653
- type: z.ZodLiteral<"assertNotFocused">;
654
- id: z.ZodString;
655
- label: z.ZodOptional<z.ZodString>;
656
- next: z.ZodOptional<z.ZodString>;
657
- uiOnly: z.ZodOptional<z.ZodBoolean>;
658
- }, z.core.$strip>, z.ZodObject<{
659
- budget: z.ZodEnum<{
660
- fast: "fast";
661
- slow: "slow";
662
- async: "async";
663
- }>;
664
- observer: z.ZodString;
665
- params: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
666
- type: z.ZodLiteral<"static">;
667
- value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
668
- }, z.core.$strip>, z.ZodObject<{
669
- name: z.ZodString;
670
- type: z.ZodLiteral<"variable">;
671
- }, z.core.$strip>], "type">>;
672
- type: z.ZodLiteral<"assertObserver">;
673
- id: z.ZodString;
674
- label: z.ZodOptional<z.ZodString>;
675
- next: z.ZodOptional<z.ZodString>;
676
- uiOnly: z.ZodOptional<z.ZodBoolean>;
677
- }, z.core.$strip>], "type">>;
678
- uiOnly: z.ZodOptional<z.ZodBoolean>;
679
- variableNamespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
680
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
681
- default: z.ZodOptional<z.ZodString>;
682
- type: z.ZodLiteral<"string">;
683
- }, z.core.$strip>, z.ZodObject<{
684
- default: z.ZodOptional<z.ZodNumber>;
685
- type: z.ZodLiteral<"number">;
686
- }, z.core.$strip>, z.ZodObject<{
687
- default: z.ZodOptional<z.ZodBoolean>;
688
- type: z.ZodLiteral<"boolean">;
689
- }, z.core.$strip>, z.ZodObject<{
690
- key: z.ZodString;
691
- type: z.ZodLiteral<"env">;
692
- }, z.core.$strip>], "type">>>;
693
- }, z.core.$strip>;
694
- }, z.core.$strip>>;
695
- }, z.core.$strip>;
696
- type Lockfile = z.infer<typeof lockfileBodyV2Schema>;
697
- declare const lockfileCodec: Codec<Lockfile>;
698
- declare function compileResultToLockfile(result: CompileResult): Lockfile;
699
- declare function serializeLockfile(lockfile: Lockfile): string;
700
- interface ReadLockfileParams {
701
- readonly cwd: string;
702
- }
703
- declare function readLockfile({ cwd }: ReadLockfileParams): Promise<Lockfile | null>;
704
- interface WriteLockfileParams {
705
- readonly cwd: string;
706
- readonly result: CompileResult;
707
- }
708
- declare function writeLockfile({ cwd, result }: WriteLockfileParams): Promise<void>;
709
- interface HashFixturesParams {
710
- readonly cwd: string;
711
- readonly result: CompileResult;
712
- }
713
- declare function hashFixturesIntoCompileResult({ cwd, result, }: HashFixturesParams): Promise<CompileResult>;
714
- type LockfileComparison = "match" | "missing" | "stale";
715
- interface CompareLockfileParams {
716
- readonly compiled: CompileResult;
717
- readonly cwd: string;
718
- readonly existing: Lockfile | null;
719
- }
720
- declare function compareCompileToLockfile({ compiled, cwd, existing, }: CompareLockfileParams): Promise<LockfileComparison>;
721
-
722
- export { type CompareLockfileParams, FIXTURES_RELATIVE_PATH, type FixtureEntry, LOCKFILE_RELATIVE_PATH, type Lockfile, type LockfileComparison, type ReadLockfileParams, type WriteLockfileParams, compareCompileToLockfile, compileResultToLockfile, hashFixturesIntoCompileResult, lockfileCodec, readLockfile, serializeLockfile, writeLockfile };