testeranto 0.166.0 → 0.167.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 (48) hide show
  1. package/dist/common/src/Pure.js +2 -2
  2. package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.mock.js +1 -1
  3. package/dist/common/src/lib/basebuilder.js +9 -7
  4. package/dist/common/src/lib/core.test/MockCore.js +17 -15
  5. package/dist/common/tsconfig.common.tsbuildinfo +1 -1
  6. package/dist/module/src/Pure.js +2 -2
  7. package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.mock.js +1 -1
  8. package/dist/module/src/lib/basebuilder.js +9 -7
  9. package/dist/module/src/lib/core.test/MockCore.js +17 -15
  10. package/dist/module/tsconfig.module.tsbuildinfo +1 -1
  11. package/dist/tsconfig.tsbuildinfo +1 -0
  12. package/dist/types/src/lib/index.d.ts +0 -1
  13. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  14. package/package.json +1 -1
  15. package/src/Pure.ts +2 -2
  16. package/src/lib/baseBuilder.test/baseBuilder.test.mock.ts +1 -1
  17. package/src/lib/basebuilder.ts +9 -9
  18. package/src/lib/core.test/MockCore.ts +26 -19
  19. package/src/lib/index.ts +1 -1
  20. package/testeranto/bundles/node/allTests/chunk-H2IBV7SY.mjs +113 -0
  21. package/testeranto/bundles/node/allTests/chunk-IDCUSTSM.mjs +669 -0
  22. package/testeranto/bundles/node/allTests/chunk-ZHOULXPN.mjs +252 -0
  23. package/testeranto/bundles/node/allTests/metafile.json +28 -28
  24. package/testeranto/bundles/node/allTests/src/lib/BaseSuite.test/node.test.mjs +3 -3
  25. package/testeranto/bundles/node/allTests/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +3 -3
  26. package/testeranto/bundles/node/allTests/src/lib/classBuilder.test/classBuilder.test.mjs +3 -3
  27. package/testeranto/bundles/node/allTests/src/lib/core.test/core.test.mjs +11 -8
  28. package/testeranto/bundles/node/allTests/src/lib/pmProxy.test/index.mjs +2 -2
  29. package/testeranto/bundles/pure/allTests/chunk-4ULDTZFU.mjs +666 -0
  30. package/testeranto/bundles/pure/allTests/chunk-5SBJWHSZ.mjs +200 -0
  31. package/testeranto/bundles/pure/allTests/metafile.json +33 -33
  32. package/testeranto/bundles/pure/allTests/src/Pure.test.mjs +2 -2
  33. package/testeranto/bundles/pure/allTests/src/lib/BaseSuite.test/pure.test.mjs +2 -2
  34. package/testeranto/bundles/pure/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +2 -2
  35. package/testeranto/bundles/web/allTests/chunk-46E6YGGN.mjs +847 -0
  36. package/testeranto/bundles/web/allTests/metafile.json +10 -10
  37. package/testeranto/bundles/web/allTests/src/lib/BaseSuite.test/web.test.mjs +1 -1
  38. package/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web.mjs +2 -2
  39. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/logs.txt +0 -0
  40. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/logs.txt +0 -0
  41. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/logs.txt +0 -0
  42. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/logs.txt +0 -0
  43. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/logs.txt +0 -0
  44. package/testeranto/reports/allTests/src/lib/core.test/core.test/node/lint_errors.txt +0 -12
  45. package/testeranto/reports/allTests/src/lib/core.test/core.test/node/type_errors.txt +2 -5
  46. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/logs.txt +0 -0
  47. package/testeranto/reports/allTests/summary.json +2 -2
  48. package/tsc.log +236 -234
@@ -0,0 +1,669 @@
1
+ import { createRequire } from 'module';const require = createRequire(import.meta.url);
2
+
3
+ // src/lib/pmProxy.ts
4
+ var baseProxy = function(pm, mappings) {
5
+ return new Proxy(pm, {
6
+ get: (target, prop, receiver) => {
7
+ for (const mapping of mappings) {
8
+ const method = mapping[0];
9
+ const arger = mapping[1];
10
+ if (prop === method) {
11
+ return (...x) => target[prop](arger(...x));
12
+ }
13
+ }
14
+ return (...x) => target[prop](...x);
15
+ }
16
+ });
17
+ };
18
+ var butThenProxy = (pm, filepath) => baseProxy(pm, [
19
+ [
20
+ "screencast",
21
+ (opts, p) => [
22
+ {
23
+ ...opts,
24
+ path: `${filepath}/butThen/${opts.path}`
25
+ },
26
+ p
27
+ ]
28
+ ],
29
+ ["createWriteStream", (fp) => [`${filepath}/butThen/${fp}`]],
30
+ [
31
+ "writeFileSync",
32
+ (fp, contents) => [`${filepath}/butThen/${fp}`, contents]
33
+ ],
34
+ [
35
+ "customScreenShot",
36
+ (opts, p) => [
37
+ {
38
+ ...opts,
39
+ path: `${filepath}/butThen/${opts.path}`
40
+ },
41
+ p
42
+ ]
43
+ ]
44
+ ]);
45
+ var andWhenProxy = (pm, filepath) => baseProxy(pm, [
46
+ [
47
+ "screencast",
48
+ (opts, p) => [
49
+ {
50
+ ...opts,
51
+ path: `${filepath}/andWhen/${opts.path}`
52
+ },
53
+ p
54
+ ]
55
+ ],
56
+ ["createWriteStream", (fp) => [`${filepath}/andWhen/${fp}`]],
57
+ ["writeFileSync", (fp, contents) => [`${filepath}/andWhen${fp}`, contents]],
58
+ [
59
+ "customScreenShot",
60
+ (opts, p) => [
61
+ {
62
+ ...opts,
63
+ path: `${filepath}/andWhen${opts.path}`
64
+ },
65
+ p
66
+ ]
67
+ ]
68
+ ]);
69
+ var afterEachProxy = (pm, suite, given) => baseProxy(pm, [
70
+ [
71
+ "screencast",
72
+ (opts, p) => [
73
+ {
74
+ ...opts,
75
+ path: `suite-${suite}/given-${given}/afterEach/${opts.path}`
76
+ },
77
+ p
78
+ ]
79
+ ],
80
+ ["createWriteStream", (fp) => [`suite-${suite}/afterEach/${fp}`]],
81
+ [
82
+ "writeFileSync",
83
+ (fp, contents) => [
84
+ `suite-${suite}/given-${given}/afterEach/${fp}`,
85
+ contents
86
+ ]
87
+ ],
88
+ [
89
+ "customScreenShot",
90
+ (opts, p) => [
91
+ {
92
+ ...opts,
93
+ path: `suite-${suite}/given-${given}/afterEach/${opts.path}`
94
+ },
95
+ p
96
+ ]
97
+ ]
98
+ ]);
99
+ var beforeEachProxy = (pm, suite) => baseProxy(pm, [
100
+ [
101
+ "screencast",
102
+ (opts, p) => [
103
+ {
104
+ ...opts,
105
+ path: `suite-${suite}/beforeEach/${opts.path}`
106
+ },
107
+ p
108
+ ]
109
+ ],
110
+ [
111
+ "writeFileSync",
112
+ (fp, contents) => [`suite-${suite}/beforeEach/${fp}`, contents]
113
+ ],
114
+ [
115
+ "customScreenShot",
116
+ (opts, p) => [
117
+ {
118
+ ...opts,
119
+ path: `suite-${suite}/beforeEach/${opts.path}`
120
+ },
121
+ p
122
+ ]
123
+ ],
124
+ ["createWriteStream", (fp) => [`suite-${suite}/beforeEach/${fp}`]]
125
+ ]);
126
+ var beforeAllProxy = (pm, suite) => baseProxy(pm, [
127
+ [
128
+ "writeFileSync",
129
+ (fp, contents) => [`suite-${suite}/beforeAll/${fp}`, contents]
130
+ ],
131
+ [
132
+ "customScreenShot",
133
+ (opts, p) => [
134
+ {
135
+ ...opts,
136
+ path: `suite-${suite}/beforeAll/${opts.path}`
137
+ },
138
+ p
139
+ ]
140
+ ],
141
+ ["createWriteStream", (fp) => [`suite-${suite}/beforeAll/${fp}`]]
142
+ ]);
143
+ var afterAllProxy = (pm, suite) => baseProxy(pm, [
144
+ ["createWriteStream", (fp) => [`suite-${suite}/afterAll/${fp}`]],
145
+ [
146
+ "writeFileSync",
147
+ (fp, contents) => [`suite-${suite}/afterAll/${fp}`, contents]
148
+ ],
149
+ [
150
+ "customScreenShot",
151
+ (opts, p) => [
152
+ {
153
+ ...opts,
154
+ path: `suite-${suite}/afterAll/${opts.path}`
155
+ },
156
+ p
157
+ ]
158
+ ]
159
+ ]);
160
+
161
+ // src/lib/basebuilder.ts
162
+ var BaseBuilder = class {
163
+ constructor(input, suitesOverrides, givenOverides, whenOverides, thenOverides, testResourceRequirement, testSpecification) {
164
+ this.artifacts = [];
165
+ this.artifacts = [];
166
+ this.testResourceRequirement = testResourceRequirement;
167
+ this.suitesOverrides = suitesOverrides;
168
+ this.givenOverides = givenOverides;
169
+ this.whenOverides = whenOverides;
170
+ this.thenOverides = thenOverides;
171
+ this.testSpecification = testSpecification;
172
+ this.specs = testSpecification(
173
+ this.Suites(),
174
+ this.Given(),
175
+ this.When(),
176
+ this.Then()
177
+ );
178
+ this.testJobs = this.specs.map((suite) => {
179
+ const suiteRunner = (suite2) => async (puppetMaster, tLog) => {
180
+ const x = await suite2.run(
181
+ input,
182
+ puppetMaster.testResourceConfiguration,
183
+ (fPath, value) => puppetMaster.testArtiFactoryfileWriter(
184
+ tLog,
185
+ (p) => {
186
+ this.artifacts.push(p);
187
+ }
188
+ )(puppetMaster.testResourceConfiguration.fs + "/" + fPath, value),
189
+ tLog,
190
+ puppetMaster
191
+ );
192
+ return x;
193
+ };
194
+ const runner = suiteRunner(suite);
195
+ return {
196
+ test: suite,
197
+ toObj: () => {
198
+ return suite.toObj();
199
+ },
200
+ runner,
201
+ receiveTestResourceConfig: async function(puppetMaster) {
202
+ const tLog = async (...l) => {
203
+ };
204
+ const suiteDone = await runner(puppetMaster, tLog);
205
+ const fails = suiteDone.fails;
206
+ await puppetMaster.writeFileSync(`bdd_errors.txt`, fails.toString());
207
+ await puppetMaster.writeFileSync(
208
+ `tests.json`,
209
+ JSON.stringify(this.toObj(), null, 2)
210
+ );
211
+ return {
212
+ failed: fails > 0,
213
+ fails,
214
+ artifacts: this.artifacts || [],
215
+ // logPromise,
216
+ features: suiteDone.features()
217
+ };
218
+ }
219
+ };
220
+ });
221
+ }
222
+ // testsJson() {
223
+ // puppetMaster.writeFileSync(
224
+ // `tests.json`,
225
+ // JSON.stringify({ features: suiteDone.features() }, null, 2)
226
+ // );
227
+ // }
228
+ Specs() {
229
+ return this.specs;
230
+ }
231
+ Suites() {
232
+ return this.suitesOverrides;
233
+ }
234
+ Given() {
235
+ return this.givenOverides;
236
+ }
237
+ When() {
238
+ return this.whenOverides;
239
+ }
240
+ Then() {
241
+ return this.thenOverides;
242
+ }
243
+ };
244
+
245
+ // src/lib/classBuilder.ts
246
+ var ClassBuilder = class extends BaseBuilder {
247
+ constructor(testImplementation, testSpecification, input, suiteKlasser, givenKlasser, whenKlasser, thenKlasser, testResourceRequirement) {
248
+ const classySuites = Object.entries(testImplementation.suites).reduce(
249
+ (a, [key], index) => {
250
+ a[key] = (somestring, givens) => {
251
+ return new suiteKlasser.prototype.constructor(
252
+ somestring,
253
+ index,
254
+ givens
255
+ );
256
+ };
257
+ return a;
258
+ },
259
+ {}
260
+ );
261
+ const classyGivens = Object.entries(testImplementation.givens).reduce(
262
+ (a, [key, g]) => {
263
+ a[key] = (features, whens, thens, ...initialValues) => {
264
+ return new givenKlasser.prototype.constructor(
265
+ key,
266
+ features,
267
+ whens,
268
+ thens,
269
+ testImplementation.givens[key],
270
+ initialValues
271
+ );
272
+ };
273
+ return a;
274
+ },
275
+ {}
276
+ );
277
+ const classyWhens = Object.entries(testImplementation.whens).reduce(
278
+ (a, [key, whEn]) => {
279
+ a[key] = (...payload) => {
280
+ return new whenKlasser.prototype.constructor(
281
+ `${whEn.name}: ${payload && payload.toString()}`,
282
+ whEn(...payload)
283
+ );
284
+ };
285
+ return a;
286
+ },
287
+ {}
288
+ );
289
+ const classyThens = Object.entries(
290
+ testImplementation.thens
291
+ ).reduce(
292
+ (a, [key, thEn]) => {
293
+ a[key] = (expected, ...x) => {
294
+ return new thenKlasser.prototype.constructor(
295
+ `${thEn.name}: ${expected && expected.toString()}`,
296
+ thEn(expected, ...x)
297
+ );
298
+ };
299
+ return a;
300
+ },
301
+ {}
302
+ );
303
+ super(
304
+ input,
305
+ classySuites,
306
+ classyGivens,
307
+ classyWhens,
308
+ classyThens,
309
+ testResourceRequirement,
310
+ testSpecification
311
+ );
312
+ }
313
+ };
314
+
315
+ // src/lib/BaseSuite.ts
316
+ var BaseSuite = class {
317
+ constructor(name, index, givens = {}) {
318
+ const suiteName = name || "testSuite";
319
+ if (!suiteName) {
320
+ throw new Error("BaseSuite requires a non-empty name");
321
+ }
322
+ console.log("[DEBUG] BaseSuite constructor - name:", suiteName, "index:", index);
323
+ this.name = suiteName;
324
+ this.index = index;
325
+ this.givens = givens;
326
+ this.fails = 0;
327
+ console.log("[DEBUG] BaseSuite initialized:", this.name, this.index);
328
+ console.log("[DEBUG] BaseSuite givens:", Object.keys(givens));
329
+ }
330
+ features() {
331
+ try {
332
+ const features = Object.keys(this.givens).map((k) => this.givens[k].features).flat().filter((value, index, array) => {
333
+ return array.indexOf(value) === index;
334
+ });
335
+ console.debug("[DEBUG] Features extracted:", features);
336
+ return features || [];
337
+ } catch (e) {
338
+ console.error("[ERROR] Failed to extract features:", e);
339
+ return [];
340
+ }
341
+ }
342
+ toObj() {
343
+ const givens = Object.keys(this.givens).map((k) => this.givens[k].toObj());
344
+ return {
345
+ name: this.name,
346
+ givens,
347
+ fails: this.fails,
348
+ failed: this.failed,
349
+ features: this.features()
350
+ };
351
+ }
352
+ setup(s, artifactory, tr, pm) {
353
+ return new Promise((res) => res(s));
354
+ }
355
+ assertThat(t) {
356
+ return !!t;
357
+ }
358
+ afterAll(store, artifactory, pm) {
359
+ return store;
360
+ }
361
+ async run(input, testResourceConfiguration, artifactory, tLog, pm) {
362
+ this.testResourceConfiguration = testResourceConfiguration;
363
+ const suiteArtifactory = (fPath, value) => artifactory(`suite-${this.index}-${this.name}/${fPath}`, value);
364
+ tLog("\nSuite:", this.index, this.name);
365
+ const sNdx = this.index;
366
+ const subject = await this.setup(
367
+ input,
368
+ suiteArtifactory,
369
+ testResourceConfiguration,
370
+ beforeAllProxy(pm, sNdx.toString())
371
+ );
372
+ for (const [gKey, g] of Object.entries(this.givens)) {
373
+ const giver = this.givens[gKey];
374
+ this.store = await giver.give(
375
+ subject,
376
+ gKey,
377
+ testResourceConfiguration,
378
+ this.assertThat,
379
+ suiteArtifactory,
380
+ tLog,
381
+ pm,
382
+ sNdx
383
+ ).catch((e) => {
384
+ this.failed = true;
385
+ this.fails = this.fails + 1;
386
+ console.error("Given error 1:", e);
387
+ throw e;
388
+ });
389
+ }
390
+ try {
391
+ this.afterAll(
392
+ this.store,
393
+ artifactory,
394
+ afterAllProxy(pm, sNdx.toString())
395
+ );
396
+ } catch (e) {
397
+ console.error(e);
398
+ }
399
+ return this;
400
+ }
401
+ };
402
+
403
+ // src/lib/index.ts
404
+ var BaseAdapter = () => ({
405
+ beforeAll: async (s) => s,
406
+ beforeEach: async function(subject, initialValues, x, testResource, pm) {
407
+ return subject;
408
+ },
409
+ afterEach: async (s) => s,
410
+ afterAll: (store) => void 0,
411
+ butThen: async (store, thenCb) => {
412
+ return thenCb(store);
413
+ },
414
+ andWhen: async (store, whenCB, testResource, pm) => {
415
+ try {
416
+ await whenCB(store, testResource, pm);
417
+ } catch (error) {
418
+ console.error("Error in andWhen:", error);
419
+ throw error;
420
+ }
421
+ },
422
+ assertThis: (x) => x
423
+ });
424
+ var DefaultAdapter = (p) => {
425
+ return {
426
+ ...BaseAdapter,
427
+ ...p
428
+ };
429
+ };
430
+ var defaultTestResourceRequirement = {
431
+ ports: 0
432
+ };
433
+
434
+ // src/lib/abstractBase.ts
435
+ var BaseGiven = class {
436
+ constructor(name, features, whens, thens, givenCB, initialValues) {
437
+ this.name = name;
438
+ this.features = features;
439
+ this.whens = whens;
440
+ this.thens = thens;
441
+ this.givenCB = givenCB;
442
+ this.initialValues = initialValues;
443
+ }
444
+ beforeAll(store) {
445
+ return store;
446
+ }
447
+ toObj() {
448
+ return {
449
+ key: this.key,
450
+ name: this.name,
451
+ whens: this.whens.map((w) => {
452
+ if (w && w.toObj)
453
+ return w.toObj();
454
+ console.error("w is not as expected!", w);
455
+ return {};
456
+ }),
457
+ thens: this.thens.map((t) => t.toObj()),
458
+ error: this.error ? [this.error, this.error.stack] : null,
459
+ failed: this.failed,
460
+ features: this.features
461
+ };
462
+ }
463
+ async afterEach(store, key, artifactory, pm) {
464
+ return store;
465
+ }
466
+ async give(subject, key, testResourceConfiguration, tester, artifactory, tLog, pm, suiteNdx) {
467
+ this.key = key;
468
+ tLog(`
469
+ ${this.key}`);
470
+ tLog(`
471
+ Given: ${this.name}`);
472
+ const givenArtifactory = (fPath, value) => artifactory(`given-${key}/${fPath}`, value);
473
+ this.uberCatcher((e) => {
474
+ console.error(e);
475
+ this.error = e.error;
476
+ tLog(e.stack);
477
+ });
478
+ try {
479
+ this.store = await this.givenThat(
480
+ subject,
481
+ testResourceConfiguration,
482
+ givenArtifactory,
483
+ this.givenCB,
484
+ this.initialValues,
485
+ beforeEachProxy(pm, suiteNdx.toString())
486
+ );
487
+ } catch (e) {
488
+ console.error("failure 4 ", e);
489
+ this.error = e;
490
+ throw e;
491
+ }
492
+ try {
493
+ for (const [whenNdx, whenStep] of this.whens.entries()) {
494
+ await whenStep.test(
495
+ this.store,
496
+ testResourceConfiguration,
497
+ tLog,
498
+ pm,
499
+ `suite-${suiteNdx}/given-${key}/when/${whenNdx}`
500
+ );
501
+ }
502
+ for (const [thenNdx, thenStep] of this.thens.entries()) {
503
+ const t = await thenStep.test(
504
+ this.store,
505
+ testResourceConfiguration,
506
+ tLog,
507
+ pm,
508
+ `suite-${suiteNdx}/given-${key}/then-${thenNdx}`
509
+ );
510
+ tester(t);
511
+ }
512
+ } catch (e) {
513
+ this.failed = true;
514
+ tLog(e.stack);
515
+ throw e;
516
+ } finally {
517
+ try {
518
+ await this.afterEach(
519
+ this.store,
520
+ this.key,
521
+ givenArtifactory,
522
+ afterEachProxy(pm, suiteNdx.toString(), key)
523
+ );
524
+ } catch (e) {
525
+ console.error("afterEach failed!", e);
526
+ this.failed = e;
527
+ throw e;
528
+ }
529
+ }
530
+ return this.store;
531
+ }
532
+ };
533
+ var BaseWhen = class {
534
+ constructor(name, whenCB) {
535
+ this.name = name;
536
+ this.whenCB = whenCB;
537
+ }
538
+ toObj() {
539
+ console.log("toObj error", this.error);
540
+ return {
541
+ name: this.name,
542
+ error: this.error && this.error.name + this.error.stack
543
+ };
544
+ }
545
+ async test(store, testResourceConfiguration, tLog, pm, filepath) {
546
+ try {
547
+ tLog(" When:", this.name);
548
+ console.debug("[DEBUG] Executing When step:", this.name);
549
+ const result = await this.andWhen(
550
+ store,
551
+ this.whenCB,
552
+ testResourceConfiguration,
553
+ andWhenProxy(pm, filepath)
554
+ );
555
+ console.debug("[DEBUG] When step completed:", this.name);
556
+ return result;
557
+ } catch (e) {
558
+ console.error("[ERROR] When step failed:", this.name, e);
559
+ this.error = e;
560
+ throw e;
561
+ }
562
+ }
563
+ };
564
+ var BaseThen = class {
565
+ constructor(name, thenCB) {
566
+ this.name = name;
567
+ this.thenCB = thenCB;
568
+ this.error = false;
569
+ }
570
+ toObj() {
571
+ return {
572
+ name: this.name,
573
+ error: this.error
574
+ };
575
+ }
576
+ async test(store, testResourceConfiguration, tLog, pm, filepath) {
577
+ return this.butThen(
578
+ store,
579
+ async (s) => {
580
+ if (typeof this.thenCB === "function") {
581
+ return await this.thenCB(s);
582
+ } else {
583
+ return this.thenCB;
584
+ }
585
+ },
586
+ testResourceConfiguration,
587
+ butThenProxy(pm, filepath)
588
+ ).catch((e) => {
589
+ this.error = e.toString();
590
+ });
591
+ }
592
+ };
593
+
594
+ // src/lib/core.ts
595
+ var TesterantoCore = class extends ClassBuilder {
596
+ constructor(input, testSpecification, testImplementation, testResourceRequirement = defaultTestResourceRequirement, testAdapter, uberCatcher) {
597
+ const fullAdapter = DefaultAdapter(testAdapter);
598
+ super(
599
+ testImplementation,
600
+ testSpecification,
601
+ input,
602
+ class extends BaseSuite {
603
+ afterAll(store, artifactory, pm) {
604
+ return fullAdapter.afterAll(store, pm);
605
+ }
606
+ assertThat(t) {
607
+ return fullAdapter.assertThis(t);
608
+ }
609
+ async setup(s, artifactory, tr, pm) {
610
+ return (fullAdapter.beforeAll || (async (input2, artifactory2, tr2, pm2) => input2))(
611
+ s,
612
+ this.testResourceConfiguration,
613
+ // artifactory,
614
+ pm
615
+ );
616
+ }
617
+ },
618
+ class Given extends BaseGiven {
619
+ constructor() {
620
+ super(...arguments);
621
+ this.uberCatcher = uberCatcher;
622
+ }
623
+ async givenThat(subject, testResource, artifactory, initializer, initialValues, pm) {
624
+ return fullAdapter.beforeEach(
625
+ subject,
626
+ initializer,
627
+ testResource,
628
+ initialValues,
629
+ pm
630
+ );
631
+ }
632
+ afterEach(store, key, artifactory, pm) {
633
+ return new Promise(
634
+ (res) => res(fullAdapter.afterEach(store, key, pm))
635
+ );
636
+ }
637
+ },
638
+ class When extends BaseWhen {
639
+ async andWhen(store, whenCB, testResource, pm) {
640
+ return await fullAdapter.andWhen(store, whenCB, testResource, pm);
641
+ }
642
+ },
643
+ class Then extends BaseThen {
644
+ async butThen(store, thenCB, testResource, pm) {
645
+ return await fullAdapter.butThen(store, thenCB, testResource, pm);
646
+ }
647
+ },
648
+ testResourceRequirement
649
+ );
650
+ }
651
+ };
652
+
653
+ // src/PM/index.ts
654
+ var PM = class {
655
+ };
656
+
657
+ export {
658
+ defaultTestResourceRequirement,
659
+ butThenProxy,
660
+ andWhenProxy,
661
+ BaseGiven,
662
+ BaseWhen,
663
+ BaseThen,
664
+ BaseBuilder,
665
+ ClassBuilder,
666
+ BaseSuite,
667
+ TesterantoCore,
668
+ PM
669
+ };