testeranto 0.173.0 → 0.177.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 (145) hide show
  1. package/dist/common/src/PM/base.js +5 -5
  2. package/dist/common/src/PM/main.js +48 -52
  3. package/dist/common/src/PM/node.js +4 -1
  4. package/dist/common/src/PM/pure.js +4 -1
  5. package/dist/common/src/PM/web.js +4 -1
  6. package/dist/common/src/Pure.js +0 -4
  7. package/dist/common/src/Pure.test.js +1 -1
  8. package/dist/common/src/ReportServerLib.js +11 -5
  9. package/dist/common/src/esbuildConfigs/node.js +1 -3
  10. package/dist/common/src/lib/BaseSuite.js +13 -11
  11. package/dist/common/src/lib/abstractBase.js +39 -42
  12. package/dist/common/src/lib/basebuilder.js +5 -0
  13. package/dist/common/src/lib/core.js +1 -0
  14. package/dist/common/src/lib/pmProxy.js +210 -100
  15. package/dist/common/src/lib/pmProxy.test/adapter.js +2 -2
  16. package/dist/common/src/lib/pmProxy.test/implementation.js +1 -1
  17. package/dist/common/testeranto.config.js +39 -39
  18. package/dist/common/tsconfig.common.tsbuildinfo +1 -1
  19. package/dist/module/src/PM/base.js +5 -5
  20. package/dist/module/src/PM/main.js +13 -17
  21. package/dist/module/src/PM/node.js +4 -1
  22. package/dist/module/src/PM/pure.js +4 -1
  23. package/dist/module/src/PM/web.js +4 -1
  24. package/dist/module/src/Pure.js +0 -4
  25. package/dist/module/src/Pure.test.js +1 -1
  26. package/dist/module/src/ReportServerLib.js +11 -5
  27. package/dist/module/src/esbuildConfigs/node.js +1 -3
  28. package/dist/module/src/lib/BaseSuite.js +13 -11
  29. package/dist/module/src/lib/abstractBase.js +39 -42
  30. package/dist/module/src/lib/basebuilder.js +5 -0
  31. package/dist/module/src/lib/core.js +1 -0
  32. package/dist/module/src/lib/pmProxy.js +210 -100
  33. package/dist/module/src/lib/pmProxy.test/adapter.js +2 -2
  34. package/dist/module/src/lib/pmProxy.test/implementation.js +1 -1
  35. package/dist/module/testeranto.config.js +39 -39
  36. package/dist/module/tsconfig.module.tsbuildinfo +1 -1
  37. package/dist/prebuild/ReportServer.mjs +10 -4
  38. package/dist/prebuild/build.mjs +1 -1
  39. package/dist/prebuild/run.mjs +19 -22
  40. package/dist/types/src/PM/base.d.ts +1 -1
  41. package/dist/types/src/PM/node.d.ts +1 -1
  42. package/dist/types/src/PM/pure.d.ts +1 -1
  43. package/dist/types/src/PM/web.d.ts +1 -1
  44. package/dist/types/src/ReportServerLib.d.ts +1 -2
  45. package/dist/types/src/lib/BaseSuite.d.ts +2 -0
  46. package/dist/types/src/lib/abstractBase.d.ts +4 -6
  47. package/dist/types/src/lib/pmProxy.d.ts +3 -3
  48. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  49. package/package.json +2 -2
  50. package/src/PM/base.ts +6 -9
  51. package/src/PM/main.ts +17 -20
  52. package/src/PM/node.ts +6 -1
  53. package/src/PM/pure.ts +6 -1
  54. package/src/PM/web.ts +5 -1
  55. package/src/Pure.test.ts +6 -6
  56. package/src/Pure.ts +0 -8
  57. package/src/ReportServerLib.ts +10 -7
  58. package/src/esbuildConfigs/node.ts +1 -1
  59. package/src/lib/BaseSuite.ts +16 -21
  60. package/src/lib/abstractBase.ts +57 -49
  61. package/src/lib/basebuilder.ts +6 -0
  62. package/src/lib/core.ts +1 -0
  63. package/src/lib/pmProxy.test/adapter.ts +2 -2
  64. package/src/lib/pmProxy.test/implementation.ts +3 -3
  65. package/src/lib/pmProxy.test/types.ts +0 -2
  66. package/src/lib/pmProxy.ts +224 -92
  67. package/testeranto/bundles/node/core/metafile.json +2 -480
  68. package/testeranto/bundles/pure/core/metafile.json +3 -621
  69. package/testeranto/bundles/web/core/metafile.json +14384 -78
  70. package/testeranto/bundles/web/core/src/{lib/baseBuilder.test/baseBuilder.test.web.html → components/pure/ProjectPageView.test/index.html} +2 -2
  71. package/testeranto/bundles/web/core/src/components/pure/ProjectPageView.test/index.mjs +39991 -0
  72. package/testeranto/projects.json +0 -1
  73. package/testeranto/reports/core/config.json +5 -5
  74. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/lint_errors.txt +18 -0
  75. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/logs.txt +59 -0
  76. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/message.txt +2 -0
  77. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/prompt.txt +27 -0
  78. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/suite-0/given-basicRender/then-0/butThen/happyPath.png +0 -0
  79. package/testeranto/reports/{staticSite/src/ReportServer.test.ts/index/node → core/src/components/pure/ProjectPageView.test/index/web}/type_errors.txt +20 -22
  80. package/testeranto/reports/core/summary.json +5 -19
  81. package/testeranto.config.ts +39 -39
  82. package/tsc.log +78 -92
  83. package/testeranto/bundles/node/allTests/metafile.json +0 -486
  84. package/testeranto/bundles/node/allTests/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +0 -1182
  85. package/testeranto/bundles/node/core/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +0 -1182
  86. package/testeranto/bundles/node/staticSite/metafile.json +0 -593
  87. package/testeranto/bundles/node/staticSite/src/ReportServer.test.ts/index.mjs +0 -1594
  88. package/testeranto/bundles/pure/allTests/metafile.json +0 -626
  89. package/testeranto/bundles/pure/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +0 -1094
  90. package/testeranto/bundles/pure/core/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +0 -1094
  91. package/testeranto/bundles/pure/staticSite/metafile.json +0 -8
  92. package/testeranto/bundles/web/allTests/metafile.json +0 -780
  93. package/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web.html +0 -19
  94. package/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web.mjs +0 -1092
  95. package/testeranto/bundles/web/core/src/lib/baseBuilder.test/baseBuilder.test.web.mjs +0 -1092
  96. package/testeranto/bundles/web/staticSite/metafile.json +0 -8
  97. package/testeranto/reports/allTests/config.json +0 -40
  98. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/bdd_errors.txt +0 -1
  99. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/lint_errors.txt +0 -2
  100. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/logs.txt +0 -33
  101. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/message.txt +0 -2
  102. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/prompt.txt +0 -26
  103. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/suite-0/given-testInitialization/then-0/butThen/hello.txt +0 -1
  104. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/tests.json +0 -69
  105. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/type_errors.txt +0 -74
  106. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/lint_errors.txt +0 -2
  107. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/message.txt +0 -2
  108. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/prompt.txt +0 -26
  109. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/type_errors.txt +0 -74
  110. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/bdd_errors.txt +0 -1
  111. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/lint_errors.txt +0 -2
  112. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/logs.txt +0 -63
  113. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/message.txt +0 -2
  114. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/prompt.txt +0 -26
  115. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/suite-0/given-testInitialization/then-0/butThen/hello.txt +0 -1
  116. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/tests.json +0 -69
  117. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/type_errors.txt +0 -74
  118. package/testeranto/reports/allTests/summary.json +0 -23
  119. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/bdd_errors.txt +0 -1
  120. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/lint_errors.txt +0 -2
  121. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/logs.txt +0 -32
  122. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/message.txt +0 -2
  123. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/prompt.txt +0 -26
  124. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/suite-0/given-testInitialization/then-0/butThen/hello.txt +0 -1
  125. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/tests.json +0 -69
  126. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.node/node/type_errors.txt +0 -74
  127. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/lint_errors.txt +0 -2
  128. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/message.txt +0 -2
  129. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/prompt.txt +0 -26
  130. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/type_errors.txt +0 -74
  131. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/bdd_errors.txt +0 -1
  132. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/lint_errors.txt +0 -2
  133. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/logs.txt +0 -61
  134. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/message.txt +0 -2
  135. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/prompt.txt +0 -26
  136. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/suite-0/given-testInitialization/then-0/butThen/hello.txt +0 -1
  137. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/tests.json +0 -69
  138. package/testeranto/reports/core/src/lib/baseBuilder.test/baseBuilder.test.web/web/type_errors.txt +0 -74
  139. package/testeranto/reports/staticSite/config.json +0 -24
  140. package/testeranto/reports/staticSite/src/ReportServer.test.ts/index/node/lint_errors.txt +0 -5
  141. package/testeranto/reports/staticSite/src/ReportServer.test.ts/index/node/logs.txt +0 -44
  142. package/testeranto/reports/staticSite/src/ReportServer.test.ts/index/node/message.txt +0 -2
  143. package/testeranto/reports/staticSite/src/ReportServer.test.ts/index/node/prompt.txt +0 -23
  144. package/testeranto/reports/staticSite/summary.json +0 -9
  145. package/testeranto/reportsnode_build_errors +0 -17
@@ -14,14 +14,26 @@ const baseProxy = function (pm, mappings) {
14
14
  },
15
15
  });
16
16
  };
17
- export const butThenProxy = (pm, filepath) => {
17
+ export const butThenProxy = (pm, filepath, addArtifact) => {
18
18
  return baseProxy(pm, [
19
19
  [
20
20
  "screencast",
21
21
  (opts, p) => {
22
- var _a, _b;
23
22
  const path = `${filepath}/butThen/${opts.path}`;
24
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
23
+ addArtifact(path);
24
+ // console.log(
25
+ // `[ARTIFACT] Preparing to add to ${step.constructor.name}:`,
26
+ // path
27
+ // );
28
+ // try {
29
+ // console.log(
30
+ // `[ARTIFACT] Successfully added to ${step.constructor.name}`
31
+ // );
32
+ // console.log(`[ARTIFACT] Current artifacts:`, JSON.stringify(step.artifacts));
33
+ // } catch (e) {
34
+ // console.error(`[ARTIFACT] Failed to add ${path}:`, e);
35
+ // throw e;
36
+ // }
25
37
  return [
26
38
  Object.assign(Object.assign({}, opts), { path }),
27
39
  p,
@@ -31,27 +43,216 @@ export const butThenProxy = (pm, filepath) => {
31
43
  [
32
44
  "createWriteStream",
33
45
  (fp) => {
34
- var _a, _b;
35
46
  const path = `${filepath}/butThen/${fp}`;
36
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
47
+ addArtifact(path);
37
48
  return [path];
38
49
  },
39
50
  ],
40
51
  [
41
52
  "writeFileSync",
42
53
  (fp, contents) => {
43
- var _a, _b;
44
54
  const path = `${filepath}/butThen/${fp}`;
45
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
55
+ addArtifact(path);
46
56
  return [path, contents];
47
57
  },
48
58
  ],
49
59
  [
50
60
  "customScreenShot",
51
61
  (opts, p) => {
52
- var _a, _b;
53
62
  const path = `${filepath}/butThen/${opts.path}`;
54
- (_b = (_a = pm.currentStep) === null || _a === void 0 ? void 0 : _a.artifacts) === null || _b === void 0 ? void 0 : _b.push(path);
63
+ addArtifact(path);
64
+ return [
65
+ Object.assign(Object.assign({}, opts), { path }),
66
+ p,
67
+ ];
68
+ },
69
+ ],
70
+ ]);
71
+ };
72
+ export const andWhenProxy = (pm, filepath, addArtifact) => {
73
+ return baseProxy(pm, [
74
+ [
75
+ "screencast",
76
+ (opts, p) => {
77
+ const path = `${filepath}/andWhen/${opts.path}`;
78
+ addArtifact(path);
79
+ return [
80
+ Object.assign(Object.assign({}, opts), { path }),
81
+ p,
82
+ ];
83
+ },
84
+ ],
85
+ [
86
+ "createWriteStream",
87
+ (fp) => {
88
+ const path = `${filepath}/andWhen/${fp}`;
89
+ addArtifact(path);
90
+ return [path];
91
+ },
92
+ ],
93
+ [
94
+ "writeFileSync",
95
+ (fp, contents) => {
96
+ const path = `${filepath}/andWhen/${fp}`;
97
+ addArtifact(path);
98
+ return [path, contents];
99
+ },
100
+ ],
101
+ [
102
+ "customScreenShot",
103
+ (opts, p) => {
104
+ const path = `${filepath}/andWhen/${opts.path}`;
105
+ // console.log("STEP2", JSON.stringify(step));
106
+ addArtifact(path);
107
+ return [
108
+ Object.assign(Object.assign({}, opts), { path }),
109
+ p,
110
+ ];
111
+ },
112
+ ],
113
+ ]);
114
+ };
115
+ export const afterEachProxy = (pm, suite, given, addArtifact) => {
116
+ return baseProxy(pm, [
117
+ [
118
+ "screencast",
119
+ (opts, p) => {
120
+ const path = `suite-${suite}/given-${given}/afterEach/${opts.path}`;
121
+ addArtifact(path);
122
+ return [
123
+ Object.assign(Object.assign({}, opts), { path }),
124
+ p,
125
+ ];
126
+ },
127
+ ],
128
+ [
129
+ "createWriteStream",
130
+ (fp) => {
131
+ const path = `suite-${suite}/afterEach/${fp}`;
132
+ addArtifact(path);
133
+ return [path];
134
+ },
135
+ ],
136
+ [
137
+ "writeFileSync",
138
+ (fp, contents) => {
139
+ const path = `suite-${suite}/given-${given}/afterEach/${fp}`;
140
+ addArtifact(path);
141
+ return [path, contents];
142
+ },
143
+ ],
144
+ [
145
+ "customScreenShot",
146
+ (opts, p) => {
147
+ const path = `suite-${suite}/given-${given}/afterEach/${opts.path}`;
148
+ addArtifact(path);
149
+ // console.log("STEP3", JSON.stringify(step));
150
+ return [
151
+ Object.assign(Object.assign({}, opts), { path }),
152
+ p,
153
+ ];
154
+ },
155
+ ],
156
+ ]);
157
+ };
158
+ export const beforeEachProxy = (pm, suite, addArtifact) => {
159
+ return baseProxy(pm, [
160
+ [
161
+ "screencast",
162
+ (opts, p) => {
163
+ const path = `suite-${suite}/beforeEach/${opts.path}`;
164
+ addArtifact(path);
165
+ return [
166
+ Object.assign(Object.assign({}, opts), { path }),
167
+ p,
168
+ ];
169
+ },
170
+ ],
171
+ [
172
+ "writeFileSync",
173
+ (fp, contents) => {
174
+ const path = `suite-${suite}/beforeEach/${fp}`;
175
+ addArtifact(path);
176
+ return [path, contents];
177
+ },
178
+ ],
179
+ [
180
+ "customScreenShot",
181
+ (opts, p) => {
182
+ const path = `suite-${suite}/beforeEach/${opts.path}`;
183
+ addArtifact(path);
184
+ return [
185
+ Object.assign(Object.assign({}, opts), { path }),
186
+ p,
187
+ ];
188
+ },
189
+ ],
190
+ [
191
+ "createWriteStream",
192
+ (fp) => {
193
+ const path = `suite-${suite}/beforeEach/${fp}`;
194
+ addArtifact(path);
195
+ return [path];
196
+ },
197
+ ],
198
+ ]);
199
+ };
200
+ export const beforeAllProxy = (pm, suite, addArtifact) => {
201
+ return baseProxy(pm, [
202
+ [
203
+ "writeFileSync",
204
+ (fp, contents) => {
205
+ const path = `suite-${suite}/beforeAll/${fp}`;
206
+ addArtifact(path);
207
+ return [path, contents];
208
+ },
209
+ ],
210
+ [
211
+ "customScreenShot",
212
+ (opts, p) => {
213
+ const path = `suite-${suite}/beforeAll/${opts.path}`;
214
+ addArtifact(path);
215
+ return [
216
+ Object.assign(Object.assign({}, opts), { path }),
217
+ p,
218
+ ];
219
+ },
220
+ ],
221
+ [
222
+ "createWriteStream",
223
+ (fp) => {
224
+ const path = `suite-${suite}/beforeAll/${fp}`;
225
+ addArtifact(path);
226
+ return [path];
227
+ },
228
+ ],
229
+ ]);
230
+ };
231
+ export const afterAllProxy = (pm, suite, addArtifact) => {
232
+ return baseProxy(pm, [
233
+ [
234
+ "createWriteStream",
235
+ (fp) => {
236
+ const path = `suite-${suite}/afterAll/${fp}`;
237
+ addArtifact(path);
238
+ return [path];
239
+ },
240
+ ],
241
+ [
242
+ "writeFileSync",
243
+ (fp, contents) => {
244
+ const path = `suite-${suite}/afterAll/${fp}`;
245
+ console.log("MARK10");
246
+ addArtifact(path);
247
+ return [path, contents];
248
+ },
249
+ ],
250
+ [
251
+ "customScreenShot",
252
+ (opts, p) => {
253
+ const path = `suite-${suite}/afterAll/${opts.path}`;
254
+ addArtifact(path);
255
+ console.log("MARK9");
55
256
  return [
56
257
  Object.assign(Object.assign({}, opts), { path }),
57
258
  p,
@@ -60,94 +261,3 @@ export const butThenProxy = (pm, filepath) => {
60
261
  ],
61
262
  ]);
62
263
  };
63
- export const andWhenProxy = (pm, filepath) => baseProxy(pm, [
64
- [
65
- "screencast",
66
- (opts, p) => [
67
- Object.assign(Object.assign({}, opts), { path: `${filepath}/andWhen/${opts.path}` }),
68
- p,
69
- ],
70
- ],
71
- ["createWriteStream", (fp) => [`${filepath}/andWhen/${fp}`]],
72
- ["writeFileSync", (fp, contents) => [`${filepath}/andWhen${fp}`, contents]],
73
- [
74
- "customScreenShot",
75
- (opts, p) => [
76
- Object.assign(Object.assign({}, opts), { path: `${filepath}/andWhen${opts.path}` }),
77
- p,
78
- ],
79
- ],
80
- ]);
81
- export const afterEachProxy = (pm, suite, given) => baseProxy(pm, [
82
- [
83
- "screencast",
84
- (opts, p) => [
85
- Object.assign(Object.assign({}, opts), { path: `suite-${suite}/given-${given}/afterEach/${opts.path}` }),
86
- p,
87
- ],
88
- ],
89
- ["createWriteStream", (fp) => [`suite-${suite}/afterEach/${fp}`]],
90
- [
91
- "writeFileSync",
92
- (fp, contents) => [
93
- `suite-${suite}/given-${given}/afterEach/${fp}`,
94
- contents,
95
- ],
96
- ],
97
- [
98
- "customScreenShot",
99
- (opts, p) => [
100
- Object.assign(Object.assign({}, opts), { path: `suite-${suite}/given-${given}/afterEach/${opts.path}` }),
101
- p,
102
- ],
103
- ],
104
- ]);
105
- export const beforeEachProxy = (pm, suite) => baseProxy(pm, [
106
- [
107
- "screencast",
108
- (opts, p) => [
109
- Object.assign(Object.assign({}, opts), { path: `suite-${suite}/beforeEach/${opts.path}` }),
110
- p,
111
- ],
112
- ],
113
- [
114
- "writeFileSync",
115
- (fp, contents) => [`suite-${suite}/beforeEach/${fp}`, contents],
116
- ],
117
- [
118
- "customScreenShot",
119
- (opts, p) => [
120
- Object.assign(Object.assign({}, opts), { path: `suite-${suite}/beforeEach/${opts.path}` }),
121
- p,
122
- ],
123
- ],
124
- ["createWriteStream", (fp) => [`suite-${suite}/beforeEach/${fp}`]],
125
- ]);
126
- export const beforeAllProxy = (pm, suite) => baseProxy(pm, [
127
- [
128
- "writeFileSync",
129
- (fp, contents) => [`suite-${suite}/beforeAll/${fp}`, contents],
130
- ],
131
- [
132
- "customScreenShot",
133
- (opts, p) => [
134
- Object.assign(Object.assign({}, opts), { path: `suite-${suite}/beforeAll/${opts.path}` }),
135
- p,
136
- ],
137
- ],
138
- ["createWriteStream", (fp) => [`suite-${suite}/beforeAll/${fp}`]],
139
- ]);
140
- export const afterAllProxy = (pm, suite) => baseProxy(pm, [
141
- ["createWriteStream", (fp) => [`suite-${suite}/afterAll/${fp}`]],
142
- [
143
- "writeFileSync",
144
- (fp, contents) => [`suite-${suite}/afterAll/${fp}`, contents],
145
- ],
146
- [
147
- "customScreenShot",
148
- (opts, p) => [
149
- Object.assign(Object.assign({}, opts), { path: `suite-${suite}/afterAll/${opts.path}` }),
150
- p,
151
- ],
152
- ],
153
- ]);
@@ -15,11 +15,11 @@ export const testAdapter = {
15
15
  // };
16
16
  },
17
17
  andWhen: async (store, whenCB, testResource, pm) => {
18
- const proxiedPM = andWhenProxy(pm, "some/path");
18
+ const proxiedPM = andWhenProxy(pm, "some/path", store);
19
19
  return whenCB(store, proxiedPM);
20
20
  },
21
21
  butThen: async (store, thenCB, testResource, pm) => {
22
- const proxiedPM = butThenProxy(pm, "some/path");
22
+ const proxiedPM = butThenProxy(pm, "some/path", store);
23
23
  return thenCB(store, proxiedPM);
24
24
  },
25
25
  afterEach: async (store, key, pm) => store,
@@ -14,7 +14,7 @@ export const implementation = {
14
14
  var _a, _b, _c, _d, _e, _f, _g, _h;
15
15
  const mockPm = new MockPMBase();
16
16
  const filepath = "test/path";
17
- const proxiedPm = store.butThenProxy(mockPm, filepath);
17
+ const rewritePath = createPathRewriter(`${filepath}/butThen`);
18
18
  let actualPath;
19
19
  let actualContent;
20
20
  try {
@@ -1,29 +1,29 @@
1
1
  // TODO- this config file is horrible. I need to redo how config files are handled.
2
2
  const config = {
3
3
  projects: {
4
- staticSite: {
5
- tests: [["src/ReportServer.test.ts/index.ts", "node", { ports: 1 }, []]],
6
- clearScreen: false,
7
- debugger: false,
8
- externals: [],
9
- featureIngestor: function (s) {
10
- throw new Error("Function not implemented.");
11
- },
12
- importPlugins: [],
13
- minify: false,
14
- nodePlugins: [],
15
- ports: ["3334"],
16
- src: "",
17
- webPlugins: [],
18
- },
4
+ // staticSite: {
5
+ // tests: [["src/ReportServer.test.ts/index.ts", "node", { ports: 1 }, []]],
6
+ // clearScreen: false,
7
+ // debugger: false,
8
+ // externals: [],
9
+ // featureIngestor: function (s: string): Promise<string> {
10
+ // throw new Error("Function not implemented.");
11
+ // },
12
+ // importPlugins: [],
13
+ // minify: false,
14
+ // nodePlugins: [],
15
+ // ports: ["3334"],
16
+ // src: "",
17
+ // webPlugins: [],
18
+ // },
19
19
  core: {
20
20
  tests: [
21
- // [
22
- // "src/components/pure/ProjectPageView.test/index.ts",
23
- // "web",
24
- // { ports: 0 },
25
- // [],
26
- // ],
21
+ [
22
+ "src/components/pure/ProjectPageView.test/index.ts",
23
+ "web",
24
+ { ports: 0 },
25
+ [],
26
+ ],
27
27
  // ["src/lib/BaseSuite.test/node.test.ts", "node", { ports: 0 }, []],
28
28
  // ["src/lib/BaseSuite.test/pure.test.ts", "pure", { ports: 0 }, []],
29
29
  // ["src/lib/BaseSuite.test/web.test.ts", "web", { ports: 0 }, []],
@@ -36,24 +36,24 @@ const config = {
36
36
  // { ports: 0 },
37
37
  // [],
38
38
  // ],
39
- [
40
- "src/lib/baseBuilder.test/baseBuilder.test.node.ts",
41
- "node",
42
- { ports: 0 },
43
- [],
44
- ],
45
- [
46
- "src/lib/baseBuilder.test/baseBuilder.test.pure.ts",
47
- "pure",
48
- { ports: 0 },
49
- [],
50
- ],
51
- [
52
- "src/lib/baseBuilder.test/baseBuilder.test.web.ts",
53
- "web",
54
- { ports: 0 },
55
- [],
56
- ],
39
+ // [
40
+ // "src/lib/baseBuilder.test/baseBuilder.test.node.ts",
41
+ // "node",
42
+ // { ports: 0 },
43
+ // [],
44
+ // ],
45
+ // [
46
+ // "src/lib/baseBuilder.test/baseBuilder.test.pure.ts",
47
+ // "pure",
48
+ // { ports: 0 },
49
+ // [],
50
+ // ],
51
+ // [
52
+ // "src/lib/baseBuilder.test/baseBuilder.test.web.ts",
53
+ // "web",
54
+ // { ports: 0 },
55
+ // [],
56
+ // ],
57
57
  // ["src/mothership/test.ts", "node", { ports: 0 }, []],
58
58
  // ["./src/lib/abstractBase/index.ts", "node", { ports: 0 }, []],
59
59
  // [