testeranto 0.82.0 → 0.84.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 (70) hide show
  1. package/dist/common/package.json +3 -0
  2. package/dist/common/src/Node.js +2 -0
  3. package/dist/common/src/PM/main.js +182 -79
  4. package/dist/common/src/PM/node.js +32 -6
  5. package/dist/common/src/PM/web.js +28 -54
  6. package/dist/common/src/Project.js +0 -3
  7. package/dist/common/src/Puppeteer.js +9 -51
  8. package/dist/common/src/SubPackages/react-dom/jsx/web.js +11 -11
  9. package/dist/common/src/Web.js +2 -0
  10. package/dist/common/src/esbuildConfigs/featuresPlugin.js +39 -0
  11. package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +62 -41
  12. package/dist/common/src/esbuildConfigs/node.js +10 -3
  13. package/dist/common/src/esbuildConfigs/web.js +6 -2
  14. package/dist/common/src/lib/abstractBase.js +343 -335
  15. package/dist/common/src/lib/basebuilder.js +7 -3
  16. package/dist/common/src/lib/core.js +1 -1
  17. package/dist/common/tsconfig.common.tsbuildinfo +1 -1
  18. package/dist/module/package.json +3 -0
  19. package/dist/module/src/Node.js +1 -1
  20. package/dist/module/src/PM/main.js +182 -79
  21. package/dist/module/src/PM/node.js +32 -6
  22. package/dist/module/src/PM/web.js +28 -51
  23. package/dist/module/src/Project.js +0 -3
  24. package/dist/module/src/Puppeteer.js +9 -51
  25. package/dist/module/src/SubPackages/react-dom/jsx/web.js +10 -10
  26. package/dist/module/src/Web.js +1 -1
  27. package/dist/module/src/esbuildConfigs/featuresPlugin.js +34 -0
  28. package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +62 -41
  29. package/dist/module/src/esbuildConfigs/node.js +10 -3
  30. package/dist/module/src/esbuildConfigs/web.js +6 -2
  31. package/dist/module/src/lib/abstractBase.js +343 -335
  32. package/dist/module/src/lib/basebuilder.js +7 -3
  33. package/dist/module/src/lib/core.js +1 -1
  34. package/dist/module/tsconfig.module.tsbuildinfo +1 -1
  35. package/dist/prebuild/Puppeteer.mjs +82033 -0
  36. package/dist/types/src/Node.d.ts +5 -1
  37. package/dist/types/src/PM/index.d.ts +10 -4
  38. package/dist/types/src/PM/main.d.ts +21 -9
  39. package/dist/types/src/PM/node.d.ts +11 -3
  40. package/dist/types/src/PM/web.d.ts +11 -2
  41. package/dist/types/src/SubPackages/react-dom/jsx/index.d.ts +1 -0
  42. package/dist/types/src/SubPackages/react-test-renderer/jsx/index.d.ts +1 -0
  43. package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/index.d.ts +1 -0
  44. package/dist/types/src/Types.d.ts +2 -2
  45. package/dist/types/src/Web.d.ts +5 -1
  46. package/dist/types/src/esbuildConfigs/featuresPlugin.d.ts +5 -0
  47. package/dist/types/src/esbuildConfigs/inputFilesPlugin.d.ts +4 -2
  48. package/dist/types/src/lib/abstractBase.d.ts +5 -5
  49. package/dist/types/src/lib/types.d.ts +7 -5
  50. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  51. package/package.json +18 -41
  52. package/pupBuild.js +18 -0
  53. package/src/Node.ts +1 -3
  54. package/src/PM/index.ts +12 -3
  55. package/src/PM/main.ts +300 -164
  56. package/src/PM/node.ts +40 -6
  57. package/src/PM/web.ts +108 -58
  58. package/src/Project.ts +0 -8
  59. package/src/Puppeteer.ts +11 -57
  60. package/src/SubPackages/react-dom/jsx/web.ts +15 -10
  61. package/src/Types.ts +5 -2
  62. package/src/Web.ts +1 -1
  63. package/src/esbuildConfigs/featuresPlugin.ts +43 -0
  64. package/src/esbuildConfigs/inputFilesPlugin.ts +98 -66
  65. package/src/esbuildConfigs/node.ts +18 -3
  66. package/src/esbuildConfigs/web.ts +14 -2
  67. package/src/lib/abstractBase.ts +381 -364
  68. package/src/lib/basebuilder.ts +7 -7
  69. package/src/lib/core.ts +1 -1
  70. package/src/lib/types.ts +13 -5
@@ -90,13 +90,13 @@ export abstract class BaseBuilder<
90
90
  puppetMaster: PM,
91
91
  tLog: ITLog
92
92
  ): Promise<BaseSuite<ITestShape>> => {
93
- const puppeteerBrowser = await puppetMaster.startPuppeteer(
94
- {
95
- browserWSEndpoint:
96
- puppetMaster.testResourceConfiguration.browserWSEndpoint,
97
- },
98
- puppetMaster.testResourceConfiguration.fs
99
- );
93
+ // const puppeteerBrowser = await puppetMaster.startPuppeteer(
94
+ // {
95
+ // browserWSEndpoint:
96
+ // puppetMaster.testResourceConfiguration.browserWSEndpoint,
97
+ // },
98
+ // puppetMaster.testResourceConfiguration.fs
99
+ // );
100
100
 
101
101
  const x = await suite.run(
102
102
  input,
package/src/lib/core.ts CHANGED
@@ -176,7 +176,7 @@ export default abstract class Testeranto<
176
176
  testResource: any,
177
177
  pm: PM
178
178
  ): Promise<ITestShape["iselection"]> {
179
- return fullTestInterface
179
+ return await fullTestInterface
180
180
  .butThen(store, thenCB, testResource, pm)
181
181
  .then(
182
182
  (v) => {
package/src/lib/types.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { IBaseTest } from "../Types";
2
2
 
3
- // import puppeteer from "puppeteer-core";
3
+ import type { Plugin } from "esbuild";
4
4
  import {
5
5
  IGivens,
6
6
  BaseCheck,
@@ -22,18 +22,25 @@ export type IJsonConfig = {
22
22
  botEmail: string;
23
23
  };
24
24
 
25
+ export type IPlugin = (
26
+ register: (entrypoint, sources) => any,
27
+ entrypoints
28
+ ) => Plugin;
29
+
25
30
  export type IBaseConfig = {
26
31
  clearScreen: boolean;
27
32
  debugger: boolean;
28
33
  devMode: boolean;
29
34
  externals: string[];
30
35
  minify: boolean;
31
- nodePlugins: any[];
32
36
  outbase: string;
33
37
  outdir: string;
34
38
  ports: string[];
35
39
  tests: ITestTypes[];
36
- webPlugins: any[];
40
+
41
+ nodePlugins: IPlugin[];
42
+ webPlugins: IPlugin[];
43
+
37
44
  featureIngestor: (s: string) => Promise<string>;
38
45
  };
39
46
 
@@ -66,7 +73,8 @@ export type IWebTestInterface<
66
73
  butThen: (
67
74
  store: ITestShape["istore"],
68
75
  thenCB,
69
- testResource: ITTestResourceConfiguration
76
+ testResource: ITTestResourceConfiguration,
77
+ utils: PM
70
78
  ) => Promise<ITestShape["iselection"]>;
71
79
 
72
80
  afterAll: (
@@ -205,7 +213,7 @@ export type ITestInterface<
205
213
  beforeEach: (
206
214
  subject: ITestShape["isubject"],
207
215
  initializer: (c?) => ITestShape["given"],
208
- artificer: ITestArtificer,
216
+ // artificer: ITestArtificer,
209
217
  testResource: ITTestResourceConfiguration,
210
218
  initialValues,
211
219
  pm: PM