@autometa/events 0.0.10 → 0.1.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.
@@ -0,0 +1,696 @@
1
+ import * as _cucumber_cucumber_expressions from '@cucumber/cucumber-expressions';
2
+ import { CucumberExpression } from '@cucumber/cucumber-expressions';
3
+ import * as zod from 'zod';
4
+ import { z } from 'zod';
5
+ import { Class } from '@autometa/types';
6
+ import { InjectionToken } from 'tsyringe';
7
+ import EventEmitter from 'events';
8
+
9
+ declare const UUIDStringSchema: z.ZodOptional<z.ZodString>;
10
+ declare const StatusSchema: z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>;
11
+ declare const EventOptionsSchema: z.ZodObject<{
12
+ title: z.ZodOptional<z.ZodString>;
13
+ keyword: z.ZodOptional<z.ZodString>;
14
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
16
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ title?: string | undefined;
19
+ keyword?: string | undefined;
20
+ tags?: string[] | undefined;
21
+ modifier?: "skip" | "only" | undefined;
22
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
23
+ }, {
24
+ title?: string | undefined;
25
+ keyword?: string | undefined;
26
+ tags?: string[] | undefined;
27
+ modifier?: "skip" | "only" | undefined;
28
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
29
+ }>;
30
+ declare const ErrorEventSchema: z.ZodObject<{
31
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
32
+ title: z.ZodOptional<z.ZodString>;
33
+ keyword: z.ZodOptional<z.ZodString>;
34
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
35
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
36
+ error: z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
39
+ title?: string | undefined;
40
+ keyword?: string | undefined;
41
+ tags?: string[] | undefined;
42
+ modifier?: "skip" | "only" | undefined;
43
+ error?: Error | undefined;
44
+ }, {
45
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
46
+ title?: string | undefined;
47
+ keyword?: string | undefined;
48
+ tags?: string[] | undefined;
49
+ modifier?: "skip" | "only" | undefined;
50
+ error?: Error | undefined;
51
+ }>;
52
+ declare const ArgsEventSchema: z.ZodObject<{
53
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
54
+ title: z.ZodOptional<z.ZodString>;
55
+ keyword: z.ZodOptional<z.ZodString>;
56
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
57
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
58
+ args: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
61
+ title?: string | undefined;
62
+ keyword?: string | undefined;
63
+ tags?: string[] | undefined;
64
+ modifier?: "skip" | "only" | undefined;
65
+ args?: unknown[] | undefined;
66
+ }, {
67
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
68
+ title?: string | undefined;
69
+ keyword?: string | undefined;
70
+ tags?: string[] | undefined;
71
+ modifier?: "skip" | "only" | undefined;
72
+ args?: unknown[] | undefined;
73
+ }>;
74
+ declare const StartFeatureOptsSchema: z.ZodObject<{
75
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
76
+ title: z.ZodOptional<z.ZodString>;
77
+ keyword: z.ZodOptional<z.ZodString>;
78
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
79
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
80
+ path: z.ZodOptional<z.ZodString>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
83
+ title?: string | undefined;
84
+ keyword?: string | undefined;
85
+ tags?: string[] | undefined;
86
+ modifier?: "skip" | "only" | undefined;
87
+ path?: string | undefined;
88
+ }, {
89
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
90
+ title?: string | undefined;
91
+ keyword?: string | undefined;
92
+ tags?: string[] | undefined;
93
+ modifier?: "skip" | "only" | undefined;
94
+ path?: string | undefined;
95
+ }>;
96
+ declare const EndFeatureOptsSchema: z.ZodObject<{
97
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
98
+ title: z.ZodOptional<z.ZodString>;
99
+ keyword: z.ZodOptional<z.ZodString>;
100
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
101
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
102
+ error: z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
105
+ title?: string | undefined;
106
+ keyword?: string | undefined;
107
+ tags?: string[] | undefined;
108
+ modifier?: "skip" | "only" | undefined;
109
+ error?: Error | undefined;
110
+ }, {
111
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
112
+ title?: string | undefined;
113
+ keyword?: string | undefined;
114
+ tags?: string[] | undefined;
115
+ modifier?: "skip" | "only" | undefined;
116
+ error?: Error | undefined;
117
+ }>;
118
+ declare const EndRuleOptsSchema: z.ZodObject<{
119
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
120
+ title: z.ZodOptional<z.ZodString>;
121
+ keyword: z.ZodOptional<z.ZodString>;
122
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
123
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
124
+ error: z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
127
+ title?: string | undefined;
128
+ keyword?: string | undefined;
129
+ tags?: string[] | undefined;
130
+ modifier?: "skip" | "only" | undefined;
131
+ error?: Error | undefined;
132
+ }, {
133
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
134
+ title?: string | undefined;
135
+ keyword?: string | undefined;
136
+ tags?: string[] | undefined;
137
+ modifier?: "skip" | "only" | undefined;
138
+ error?: Error | undefined;
139
+ }>;
140
+ declare const StartScenarioOutlineOptsSchema: z.ZodObject<{
141
+ title: z.ZodOptional<z.ZodString>;
142
+ keyword: z.ZodOptional<z.ZodString>;
143
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
144
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
145
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ title?: string | undefined;
148
+ keyword?: string | undefined;
149
+ tags?: string[] | undefined;
150
+ modifier?: "skip" | "only" | undefined;
151
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
152
+ }, {
153
+ title?: string | undefined;
154
+ keyword?: string | undefined;
155
+ tags?: string[] | undefined;
156
+ modifier?: "skip" | "only" | undefined;
157
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
158
+ }>;
159
+ declare const EndScenarioOutlineOptsSchema: z.ZodObject<{
160
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
161
+ title: z.ZodOptional<z.ZodString>;
162
+ keyword: z.ZodOptional<z.ZodString>;
163
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
164
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
165
+ error: z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
168
+ title?: string | undefined;
169
+ keyword?: string | undefined;
170
+ tags?: string[] | undefined;
171
+ modifier?: "skip" | "only" | undefined;
172
+ error?: Error | undefined;
173
+ }, {
174
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
175
+ title?: string | undefined;
176
+ keyword?: string | undefined;
177
+ tags?: string[] | undefined;
178
+ modifier?: "skip" | "only" | undefined;
179
+ error?: Error | undefined;
180
+ }>;
181
+ declare const StartScenarioOptsSchema: z.ZodObject<{
182
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
183
+ title: z.ZodOptional<z.ZodString>;
184
+ keyword: z.ZodOptional<z.ZodString>;
185
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
186
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
187
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
188
+ key: z.ZodString;
189
+ }, "strip", z.ZodTypeAny, {
190
+ key: string;
191
+ }, {
192
+ key: string;
193
+ }>, "many">>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
196
+ title?: string | undefined;
197
+ keyword?: string | undefined;
198
+ tags?: string[] | undefined;
199
+ modifier?: "skip" | "only" | undefined;
200
+ examples?: {
201
+ key: string;
202
+ }[] | undefined;
203
+ }, {
204
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
205
+ title?: string | undefined;
206
+ keyword?: string | undefined;
207
+ tags?: string[] | undefined;
208
+ modifier?: "skip" | "only" | undefined;
209
+ examples?: {
210
+ key: string;
211
+ }[] | undefined;
212
+ }>;
213
+ declare const EndScenarioOptsSchema: z.ZodObject<{
214
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
215
+ title: z.ZodOptional<z.ZodString>;
216
+ keyword: z.ZodOptional<z.ZodString>;
217
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
218
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
219
+ error: z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
222
+ title?: string | undefined;
223
+ keyword?: string | undefined;
224
+ tags?: string[] | undefined;
225
+ modifier?: "skip" | "only" | undefined;
226
+ error?: Error | undefined;
227
+ }, {
228
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
229
+ title?: string | undefined;
230
+ keyword?: string | undefined;
231
+ tags?: string[] | undefined;
232
+ modifier?: "skip" | "only" | undefined;
233
+ error?: Error | undefined;
234
+ }>;
235
+ declare const StartStepOptsSchema: z.ZodObject<{
236
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
237
+ title: z.ZodOptional<z.ZodString>;
238
+ keyword: z.ZodOptional<z.ZodString>;
239
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
240
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
241
+ args: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
242
+ expression: z.ZodOptional<z.ZodType<CucumberExpression, z.ZodTypeDef, CucumberExpression>>;
243
+ text: z.ZodOptional<z.ZodString>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
246
+ title?: string | undefined;
247
+ keyword?: string | undefined;
248
+ tags?: string[] | undefined;
249
+ modifier?: "skip" | "only" | undefined;
250
+ args?: unknown[] | undefined;
251
+ expression?: CucumberExpression | undefined;
252
+ text?: string | undefined;
253
+ }, {
254
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
255
+ title?: string | undefined;
256
+ keyword?: string | undefined;
257
+ tags?: string[] | undefined;
258
+ modifier?: "skip" | "only" | undefined;
259
+ args?: unknown[] | undefined;
260
+ expression?: CucumberExpression | undefined;
261
+ text?: string | undefined;
262
+ }>;
263
+ declare const EndStepOptsSchema: z.ZodObject<{
264
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
265
+ error: z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>;
266
+ title: z.ZodOptional<z.ZodString>;
267
+ keyword: z.ZodOptional<z.ZodString>;
268
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
269
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
270
+ args: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
271
+ expression: z.ZodType<CucumberExpression, z.ZodTypeDef, CucumberExpression>;
272
+ text: z.ZodString;
273
+ }, "strip", z.ZodTypeAny, {
274
+ expression: CucumberExpression;
275
+ text: string;
276
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
277
+ error?: Error | undefined;
278
+ title?: string | undefined;
279
+ keyword?: string | undefined;
280
+ tags?: string[] | undefined;
281
+ modifier?: "skip" | "only" | undefined;
282
+ args?: unknown[] | undefined;
283
+ }, {
284
+ expression: CucumberExpression;
285
+ text: string;
286
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
287
+ error?: Error | undefined;
288
+ title?: string | undefined;
289
+ keyword?: string | undefined;
290
+ tags?: string[] | undefined;
291
+ modifier?: "skip" | "only" | undefined;
292
+ args?: unknown[] | undefined;
293
+ }>;
294
+ declare const StartBeforeOptsSchema: z.ZodObject<{
295
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
296
+ title: z.ZodOptional<z.ZodString>;
297
+ keyword: z.ZodOptional<z.ZodString>;
298
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
299
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
300
+ args: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
303
+ title?: string | undefined;
304
+ keyword?: string | undefined;
305
+ tags?: string[] | undefined;
306
+ modifier?: "skip" | "only" | undefined;
307
+ args?: unknown[] | undefined;
308
+ }, {
309
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
310
+ title?: string | undefined;
311
+ keyword?: string | undefined;
312
+ tags?: string[] | undefined;
313
+ modifier?: "skip" | "only" | undefined;
314
+ args?: unknown[] | undefined;
315
+ }>;
316
+ declare const EndBeforeOptsSchema: z.ZodObject<{
317
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
318
+ title: z.ZodOptional<z.ZodString>;
319
+ keyword: z.ZodOptional<z.ZodString>;
320
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
321
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
322
+ error: z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>;
323
+ }, "strip", z.ZodTypeAny, {
324
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
325
+ title?: string | undefined;
326
+ keyword?: string | undefined;
327
+ tags?: string[] | undefined;
328
+ modifier?: "skip" | "only" | undefined;
329
+ error?: Error | undefined;
330
+ }, {
331
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
332
+ title?: string | undefined;
333
+ keyword?: string | undefined;
334
+ tags?: string[] | undefined;
335
+ modifier?: "skip" | "only" | undefined;
336
+ error?: Error | undefined;
337
+ }>;
338
+ declare const StartAfterOptsSchema: z.ZodObject<{
339
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
340
+ title: z.ZodOptional<z.ZodString>;
341
+ keyword: z.ZodOptional<z.ZodString>;
342
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
343
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
344
+ args: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
345
+ }, "strip", z.ZodTypeAny, {
346
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
347
+ title?: string | undefined;
348
+ keyword?: string | undefined;
349
+ tags?: string[] | undefined;
350
+ modifier?: "skip" | "only" | undefined;
351
+ args?: unknown[] | undefined;
352
+ }, {
353
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
354
+ title?: string | undefined;
355
+ keyword?: string | undefined;
356
+ tags?: string[] | undefined;
357
+ modifier?: "skip" | "only" | undefined;
358
+ args?: unknown[] | undefined;
359
+ }>;
360
+ declare const EndAfterOptsSchema: z.ZodObject<{
361
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
362
+ title: z.ZodOptional<z.ZodString>;
363
+ keyword: z.ZodOptional<z.ZodString>;
364
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
365
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
366
+ error: z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>;
367
+ }, "strip", z.ZodTypeAny, {
368
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
369
+ title?: string | undefined;
370
+ keyword?: string | undefined;
371
+ tags?: string[] | undefined;
372
+ modifier?: "skip" | "only" | undefined;
373
+ error?: Error | undefined;
374
+ }, {
375
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
376
+ title?: string | undefined;
377
+ keyword?: string | undefined;
378
+ tags?: string[] | undefined;
379
+ modifier?: "skip" | "only" | undefined;
380
+ error?: Error | undefined;
381
+ }>;
382
+ declare const StartSetupOptsSchema: z.ZodObject<{
383
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
384
+ title: z.ZodOptional<z.ZodString>;
385
+ keyword: z.ZodOptional<z.ZodString>;
386
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
387
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
388
+ args: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
391
+ title?: string | undefined;
392
+ keyword?: string | undefined;
393
+ tags?: string[] | undefined;
394
+ modifier?: "skip" | "only" | undefined;
395
+ args?: unknown[] | undefined;
396
+ }, {
397
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
398
+ title?: string | undefined;
399
+ keyword?: string | undefined;
400
+ tags?: string[] | undefined;
401
+ modifier?: "skip" | "only" | undefined;
402
+ args?: unknown[] | undefined;
403
+ }>;
404
+ declare const EndSetupOptsSchema: z.ZodObject<{
405
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
406
+ title: z.ZodOptional<z.ZodString>;
407
+ keyword: z.ZodOptional<z.ZodString>;
408
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
409
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
410
+ error: z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>;
411
+ }, "strip", z.ZodTypeAny, {
412
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
413
+ title?: string | undefined;
414
+ keyword?: string | undefined;
415
+ tags?: string[] | undefined;
416
+ modifier?: "skip" | "only" | undefined;
417
+ error?: Error | undefined;
418
+ }, {
419
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
420
+ title?: string | undefined;
421
+ keyword?: string | undefined;
422
+ tags?: string[] | undefined;
423
+ modifier?: "skip" | "only" | undefined;
424
+ error?: Error | undefined;
425
+ }>;
426
+ declare const StartTeardownOptsSchema: z.ZodObject<{
427
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
428
+ title: z.ZodOptional<z.ZodString>;
429
+ keyword: z.ZodOptional<z.ZodString>;
430
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
431
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
432
+ args: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
433
+ }, "strip", z.ZodTypeAny, {
434
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
435
+ title?: string | undefined;
436
+ keyword?: string | undefined;
437
+ tags?: string[] | undefined;
438
+ modifier?: "skip" | "only" | undefined;
439
+ args?: unknown[] | undefined;
440
+ }, {
441
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
442
+ title?: string | undefined;
443
+ keyword?: string | undefined;
444
+ tags?: string[] | undefined;
445
+ modifier?: "skip" | "only" | undefined;
446
+ args?: unknown[] | undefined;
447
+ }>;
448
+ declare const EndTeardownOptsSchema: z.ZodObject<{
449
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"FAILED">, z.ZodLiteral<"BROKEN">, z.ZodLiteral<"PASSED">, z.ZodLiteral<"SKIPPED">]>>;
450
+ title: z.ZodOptional<z.ZodString>;
451
+ keyword: z.ZodOptional<z.ZodString>;
452
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
453
+ modifier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"skip">, z.ZodLiteral<"only">]>>;
454
+ error: z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
457
+ title?: string | undefined;
458
+ keyword?: string | undefined;
459
+ tags?: string[] | undefined;
460
+ modifier?: "skip" | "only" | undefined;
461
+ error?: Error | undefined;
462
+ }, {
463
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
464
+ title?: string | undefined;
465
+ keyword?: string | undefined;
466
+ tags?: string[] | undefined;
467
+ modifier?: "skip" | "only" | undefined;
468
+ error?: Error | undefined;
469
+ }>;
470
+ type EventOptions = z.infer<typeof EventOptionsSchema>;
471
+ type StartFeatureOpts = z.infer<typeof StartFeatureOptsSchema>;
472
+ type EndFeatureOpts = z.infer<typeof EndFeatureOptsSchema>;
473
+ type StartRuleOpts = EventOptions;
474
+ type EndRuleOpts = z.infer<typeof EndRuleOptsSchema>;
475
+ type StartScenarioOutlineOpts = z.infer<typeof StartScenarioOutlineOptsSchema>;
476
+ type EndScenarioOutlineOpts = z.infer<typeof EndScenarioOutlineOptsSchema>;
477
+ type StartScenarioOpts = z.infer<typeof StartScenarioOptsSchema>;
478
+ type EndScenarioOpts = z.infer<typeof EndScenarioOptsSchema>;
479
+ type StartStepOpts = z.infer<typeof StartStepOptsSchema>;
480
+ type EndStepOpts = z.infer<typeof EndStepOptsSchema>;
481
+ type StartBeforeOpts = z.infer<typeof StartBeforeOptsSchema>;
482
+ type EndBeforeOpts = z.infer<typeof EndBeforeOptsSchema>;
483
+ type StartAfterOpts = z.infer<typeof StartAfterOptsSchema>;
484
+ type EndAfterOpts = z.infer<typeof EndAfterOptsSchema>;
485
+ type StartSetupOpts = z.infer<typeof StartSetupOptsSchema>;
486
+ type EndSetupOpts = z.infer<typeof EndSetupOptsSchema>;
487
+ type StartTeardownOpts = z.infer<typeof StartTeardownOptsSchema>;
488
+ type EndTeardownOpts = z.infer<typeof EndTeardownOptsSchema>;
489
+
490
+ type DependencyInstanceProvider = {
491
+ token: InjectionToken<unknown>;
492
+ instance: unknown;
493
+ };
494
+ declare const EventSubscriberSchema: zod.ZodObject<{
495
+ onFeature: zod.ZodFunction<zod.ZodTuple<[], zod.ZodUnknown>, zod.ZodUnknown>;
496
+ }, "strip", zod.ZodTypeAny, {
497
+ onFeature: (...args: unknown[]) => unknown;
498
+ }, {
499
+ onFeature: (...args: unknown[]) => unknown;
500
+ }>;
501
+ interface EventSubscriber {
502
+ onFeatureStart?(opts: StartFeatureOpts): void;
503
+ onFeatureEnd?(opts: EndFeatureOpts): void;
504
+ onRuleStart?(opts: StartRuleOpts): void;
505
+ onRuleEnd?(opts: EndRuleOpts): void;
506
+ onScenarioOutlineStart?(opts: StartScenarioOutlineOpts): void;
507
+ onScenarioOutlineEnd?(opts: EndScenarioOpts): void;
508
+ onPreScenarioStart?(): void;
509
+ onPostScenarioEnd?(): void;
510
+ onScenarioStart?(opts: StartScenarioOpts): void;
511
+ onScenarioEnd?(opts: EndScenarioOpts): void;
512
+ onStepStart?(opts: StartStepOpts): void;
513
+ onStepEnd?(opts: EndStepOpts): void;
514
+ onSetupStart?(opts: StartSetupOpts): void;
515
+ onSetupEnd?(opts: EndSetupOpts): void;
516
+ onTeardownStart?(opts: StartTeardownOpts): void;
517
+ onTeardownEnd?(opts: EndTeardownOpts): void;
518
+ onBeforeStart?(opts: StartBeforeOpts): void;
519
+ onBeforeEnd?(opts: EndBeforeOpts): void;
520
+ onAfterStart?(opts: StartAfterOpts): void;
521
+ onAfterEnd?(opts: EndAfterOpts): void;
522
+ }
523
+ declare abstract class ProviderSubscriber implements EventSubscriber {
524
+ abstract get fixtures(): {
525
+ instances?: DependencyInstanceProvider[];
526
+ prototypes?: Class<unknown>[];
527
+ };
528
+ addFixtureInstance: (instance: DependencyInstanceProvider) => void;
529
+ onFeatureStart?(opts: StartFeatureOpts): void;
530
+ }
531
+
532
+ declare class TestEmitter<TArgsStart = never, TArgsEnd = never> extends EventEmitter {
533
+ readonly name: string;
534
+ constructor(name: string);
535
+ emitStart: (...args: TArgsStart[]) => void;
536
+ onStart: (action?: ((...args: unknown[]) => void) | undefined) => void;
537
+ onEnd: (action?: ((...args: unknown[]) => void) | undefined) => void;
538
+ emitEnd: (...args: TArgsEnd[]) => void;
539
+ load: (onStart?: Cb, onEnd?: Cb) => void;
540
+ }
541
+
542
+ declare class TestEventEmitter {
543
+ scenarioOutline: TestEmitter<{
544
+ title?: string | undefined;
545
+ keyword?: string | undefined;
546
+ tags?: string[] | undefined;
547
+ modifier?: "skip" | "only" | undefined;
548
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
549
+ }, {
550
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
551
+ title?: string | undefined;
552
+ keyword?: string | undefined;
553
+ tags?: string[] | undefined;
554
+ modifier?: "skip" | "only" | undefined;
555
+ error?: Error | undefined;
556
+ }>;
557
+ feature: TestEmitter<{
558
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
559
+ title?: string | undefined;
560
+ keyword?: string | undefined;
561
+ tags?: string[] | undefined;
562
+ modifier?: "skip" | "only" | undefined;
563
+ path?: string | undefined;
564
+ }, {
565
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
566
+ title?: string | undefined;
567
+ keyword?: string | undefined;
568
+ tags?: string[] | undefined;
569
+ modifier?: "skip" | "only" | undefined;
570
+ error?: Error | undefined;
571
+ }>;
572
+ rule: TestEmitter<{
573
+ title?: string | undefined;
574
+ keyword?: string | undefined;
575
+ tags?: string[] | undefined;
576
+ modifier?: "skip" | "only" | undefined;
577
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
578
+ }, {
579
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
580
+ title?: string | undefined;
581
+ keyword?: string | undefined;
582
+ tags?: string[] | undefined;
583
+ modifier?: "skip" | "only" | undefined;
584
+ error?: Error | undefined;
585
+ }>;
586
+ scenario: TestEmitter<{
587
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
588
+ title?: string | undefined;
589
+ keyword?: string | undefined;
590
+ tags?: string[] | undefined;
591
+ modifier?: "skip" | "only" | undefined;
592
+ examples?: {
593
+ key: string;
594
+ }[] | undefined;
595
+ }, {
596
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
597
+ title?: string | undefined;
598
+ keyword?: string | undefined;
599
+ tags?: string[] | undefined;
600
+ modifier?: "skip" | "only" | undefined;
601
+ error?: Error | undefined;
602
+ }>;
603
+ scenarioWrapper: TestEmitter<never, never>;
604
+ setup: TestEmitter<{
605
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
606
+ title?: string | undefined;
607
+ keyword?: string | undefined;
608
+ tags?: string[] | undefined;
609
+ modifier?: "skip" | "only" | undefined;
610
+ args?: unknown[] | undefined;
611
+ }, {
612
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
613
+ title?: string | undefined;
614
+ keyword?: string | undefined;
615
+ tags?: string[] | undefined;
616
+ modifier?: "skip" | "only" | undefined;
617
+ error?: Error | undefined;
618
+ }>;
619
+ teardown: TestEmitter<{
620
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
621
+ title?: string | undefined;
622
+ keyword?: string | undefined;
623
+ tags?: string[] | undefined;
624
+ modifier?: "skip" | "only" | undefined;
625
+ args?: unknown[] | undefined;
626
+ }, {
627
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
628
+ title?: string | undefined;
629
+ keyword?: string | undefined;
630
+ tags?: string[] | undefined;
631
+ modifier?: "skip" | "only" | undefined;
632
+ error?: Error | undefined;
633
+ }>;
634
+ before: TestEmitter<{
635
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
636
+ title?: string | undefined;
637
+ keyword?: string | undefined;
638
+ tags?: string[] | undefined;
639
+ modifier?: "skip" | "only" | undefined;
640
+ args?: unknown[] | undefined;
641
+ }, {
642
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
643
+ title?: string | undefined;
644
+ keyword?: string | undefined;
645
+ tags?: string[] | undefined;
646
+ modifier?: "skip" | "only" | undefined;
647
+ error?: Error | undefined;
648
+ }>;
649
+ after: TestEmitter<{
650
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
651
+ title?: string | undefined;
652
+ keyword?: string | undefined;
653
+ tags?: string[] | undefined;
654
+ modifier?: "skip" | "only" | undefined;
655
+ args?: unknown[] | undefined;
656
+ }, {
657
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
658
+ title?: string | undefined;
659
+ keyword?: string | undefined;
660
+ tags?: string[] | undefined;
661
+ modifier?: "skip" | "only" | undefined;
662
+ error?: Error | undefined;
663
+ }>;
664
+ step: TestEmitter<{
665
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
666
+ title?: string | undefined;
667
+ keyword?: string | undefined;
668
+ tags?: string[] | undefined;
669
+ modifier?: "skip" | "only" | undefined;
670
+ args?: unknown[] | undefined;
671
+ expression?: _cucumber_cucumber_expressions.CucumberExpression | undefined;
672
+ text?: string | undefined;
673
+ }, {
674
+ expression: _cucumber_cucumber_expressions.CucumberExpression;
675
+ text: string;
676
+ status?: "FAILED" | "BROKEN" | "PASSED" | "SKIPPED" | undefined;
677
+ error?: Error | undefined;
678
+ title?: string | undefined;
679
+ keyword?: string | undefined;
680
+ tags?: string[] | undefined;
681
+ modifier?: "skip" | "only" | undefined;
682
+ args?: unknown[] | undefined;
683
+ }>;
684
+ load: ({ onFeatureStart, onFeatureEnd, onScenarioOutlineStart, onScenarioOutlineEnd, onScenarioStart, onScenarioEnd, onRuleStart, onRuleEnd, onBeforeStart, onBeforeEnd, onSetupStart, onSetupEnd, onStepStart, onStepEnd, onAfterStart, onAfterEnd, onTeardownStart, onTeardownEnd, onPreScenarioStart, onPostScenarioEnd, }: EventSubscriber) => void;
685
+ }
686
+ type Cb = (...args: any[]) => void;
687
+
688
+ declare const Status: {
689
+ readonly FAILED: "FAILED";
690
+ readonly BROKEN: "BROKEN";
691
+ readonly PASSED: "PASSED";
692
+ readonly SKIPPED: "SKIPPED";
693
+ };
694
+ type StatusType = keyof typeof Status;
695
+
696
+ export { ArgsEventSchema, Cb, DependencyInstanceProvider, EndAfterOpts, EndAfterOptsSchema, EndBeforeOpts, EndBeforeOptsSchema, EndFeatureOpts, EndFeatureOptsSchema, EndRuleOpts, EndRuleOptsSchema, EndScenarioOpts, EndScenarioOptsSchema, EndScenarioOutlineOpts, EndScenarioOutlineOptsSchema, EndSetupOpts, EndSetupOptsSchema, EndStepOpts, EndStepOptsSchema, EndTeardownOpts, EndTeardownOptsSchema, ErrorEventSchema, EventOptions, EventOptionsSchema, EventSubscriber, EventSubscriberSchema, ProviderSubscriber, StartAfterOpts, StartAfterOptsSchema, StartBeforeOpts, StartBeforeOptsSchema, StartFeatureOpts, StartFeatureOptsSchema, StartRuleOpts, StartScenarioOpts, StartScenarioOptsSchema, StartScenarioOutlineOpts, StartScenarioOutlineOptsSchema, StartSetupOpts, StartSetupOptsSchema, StartStepOpts, StartStepOptsSchema, StartTeardownOpts, StartTeardownOptsSchema, Status, StatusSchema, StatusType, TestEmitter, TestEventEmitter, UUIDStringSchema };