testeranto 0.80.0 → 0.81.1

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 (51) hide show
  1. package/.aider.chat.history.md +980 -0
  2. package/.aider.input.history +87 -0
  3. package/.aider.tags.cache.v3/1c/30/af1de2ad7a137afeddb1b01e0c27.val +0 -0
  4. package/.aider.tags.cache.v3/1d/63/88318b65ce58b6bb0487e8ce2656.val +0 -0
  5. package/.aider.tags.cache.v3/2e/67/16ae65530b40038e48e00d666c63.val +0 -0
  6. package/.aider.tags.cache.v3/6f/94/80488a232866fcce7ee657da488b.val +0 -0
  7. package/.aider.tags.cache.v3/cache.db +0 -0
  8. package/.gitattributes +1 -0
  9. package/README.md +10 -6
  10. package/dist/common/src/Aider.js +116 -69
  11. package/dist/common/src/PM/main.js +49 -46
  12. package/dist/common/src/PM/node.js +1 -1
  13. package/dist/common/src/Project.js +46 -38
  14. package/dist/common/src/Puppeteer.js +44 -37
  15. package/dist/common/src/SubPackages/react-test-renderer/jsx/index.js +17 -2
  16. package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +39 -12
  17. package/dist/common/src/esbuildConfigs/web.js +3 -3
  18. package/dist/common/src/lib/abstractBase.js +41 -13
  19. package/dist/common/src/lib/basebuilder.js +6 -3
  20. package/dist/common/src/lib/core.js +47 -3
  21. package/dist/common/tsconfig.common.tsbuildinfo +1 -1
  22. package/dist/module/src/Aider.js +116 -69
  23. package/dist/module/src/PM/main.js +49 -46
  24. package/dist/module/src/PM/node.js +1 -1
  25. package/dist/module/src/Project.js +46 -38
  26. package/dist/module/src/Puppeteer.js +44 -37
  27. package/dist/module/src/SubPackages/react-test-renderer/jsx/index.js +17 -2
  28. package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +39 -12
  29. package/dist/module/src/esbuildConfigs/web.js +3 -3
  30. package/dist/module/src/lib/abstractBase.js +41 -13
  31. package/dist/module/src/lib/basebuilder.js +6 -3
  32. package/dist/module/src/lib/core.js +47 -3
  33. package/dist/module/tsconfig.module.tsbuildinfo +1 -1
  34. package/dist/types/src/PM/main.d.ts +7 -1
  35. package/dist/types/src/Project.d.ts +6 -1
  36. package/dist/types/src/lib/abstractBase.d.ts +1 -0
  37. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  38. package/package.json +11 -15
  39. package/secret +1 -0
  40. package/secret.env +2 -0
  41. package/src/Aider.ts +140 -97
  42. package/src/PM/main.ts +60 -56
  43. package/src/PM/node.ts +1 -1
  44. package/src/Project.ts +55 -48
  45. package/src/Puppeteer.ts +56 -49
  46. package/src/SubPackages/react-test-renderer/jsx/index.ts +25 -2
  47. package/src/esbuildConfigs/inputFilesPlugin.ts +77 -32
  48. package/src/esbuildConfigs/web.ts +3 -3
  49. package/src/lib/abstractBase.ts +48 -17
  50. package/src/lib/basebuilder.ts +8 -3
  51. package/src/lib/core.ts +55 -13
package/src/lib/core.ts CHANGED
@@ -142,12 +142,30 @@ export default abstract class Testeranto<
142
142
 
143
143
  class When extends BaseWhen<ITestShape> {
144
144
  async andWhen(store, whenCB, testResource, pm) {
145
- return await fullTestInterface.andWhen(
146
- store,
147
- whenCB,
148
- testResource,
149
- pm
150
- );
145
+ try {
146
+ return await fullTestInterface.andWhen(
147
+ store,
148
+ whenCB,
149
+ testResource,
150
+ pm
151
+ );
152
+ } catch (e) {
153
+ throw e;
154
+ }
155
+ // return fullTestInterface
156
+ // .andWhen(store, whenCB, testResource, pm)
157
+ // .catch((e) => {
158
+ // throw e;
159
+ // });
160
+ // return new Promise((res, rej) => {
161
+ // fullTestInterface.andWhen(store, whenCB, testResource, pm);
162
+ // });
163
+ // return await fullTestInterface.andWhen(
164
+ // store,
165
+ // whenCB,
166
+ // testResource,
167
+ // pm
168
+ // );
151
169
  }
152
170
  } as any,
153
171
 
@@ -155,15 +173,39 @@ export default abstract class Testeranto<
155
173
  async butThen(
156
174
  store: any,
157
175
  thenCB,
158
- testResourceConfiguration: any,
176
+ testResource: any,
159
177
  pm: PM
160
178
  ): Promise<ITestShape["iselection"]> {
161
- return await fullTestInterface.butThen(
162
- store,
163
- thenCB,
164
- testResourceConfiguration,
165
- pm
166
- );
179
+ return fullTestInterface
180
+ .butThen(store, thenCB, testResource, pm)
181
+ .then(
182
+ (v) => {
183
+ return v;
184
+ },
185
+ (e) => {
186
+ console.log(" ERROR ", e);
187
+ throw e;
188
+ }
189
+ );
190
+ // try {
191
+ // console.log("mark 4");
192
+ // return await fullTestInterface.butThen(
193
+ // store,
194
+ // thenCB,
195
+ // testResource,
196
+ // pm
197
+ // );
198
+ // } catch (e) {
199
+ // console.log("mar123");
200
+ // throw e;
201
+ // }
202
+
203
+ // return await fullTestInterface.butThen(
204
+ // store,
205
+ // thenCB,
206
+ // testResourceConfiguration,
207
+ // pm
208
+ // );
167
209
  }
168
210
  } as any,
169
211