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.
- package/dist/common/package.json +3 -0
- package/dist/common/src/Node.js +2 -0
- package/dist/common/src/PM/main.js +182 -79
- package/dist/common/src/PM/node.js +32 -6
- package/dist/common/src/PM/web.js +28 -54
- package/dist/common/src/Project.js +0 -3
- package/dist/common/src/Puppeteer.js +9 -51
- package/dist/common/src/SubPackages/react-dom/jsx/web.js +11 -11
- package/dist/common/src/Web.js +2 -0
- package/dist/common/src/esbuildConfigs/featuresPlugin.js +39 -0
- package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +62 -41
- package/dist/common/src/esbuildConfigs/node.js +10 -3
- package/dist/common/src/esbuildConfigs/web.js +6 -2
- package/dist/common/src/lib/abstractBase.js +343 -335
- package/dist/common/src/lib/basebuilder.js +7 -3
- package/dist/common/src/lib/core.js +1 -1
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/package.json +3 -0
- package/dist/module/src/Node.js +1 -1
- package/dist/module/src/PM/main.js +182 -79
- package/dist/module/src/PM/node.js +32 -6
- package/dist/module/src/PM/web.js +28 -51
- package/dist/module/src/Project.js +0 -3
- package/dist/module/src/Puppeteer.js +9 -51
- package/dist/module/src/SubPackages/react-dom/jsx/web.js +10 -10
- package/dist/module/src/Web.js +1 -1
- package/dist/module/src/esbuildConfigs/featuresPlugin.js +34 -0
- package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +62 -41
- package/dist/module/src/esbuildConfigs/node.js +10 -3
- package/dist/module/src/esbuildConfigs/web.js +6 -2
- package/dist/module/src/lib/abstractBase.js +343 -335
- package/dist/module/src/lib/basebuilder.js +7 -3
- package/dist/module/src/lib/core.js +1 -1
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/Puppeteer.mjs +82033 -0
- package/dist/types/src/Node.d.ts +5 -1
- package/dist/types/src/PM/index.d.ts +10 -4
- package/dist/types/src/PM/main.d.ts +21 -9
- package/dist/types/src/PM/node.d.ts +11 -3
- package/dist/types/src/PM/web.d.ts +11 -2
- package/dist/types/src/SubPackages/react-dom/jsx/index.d.ts +1 -0
- package/dist/types/src/SubPackages/react-test-renderer/jsx/index.d.ts +1 -0
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/index.d.ts +1 -0
- package/dist/types/src/Types.d.ts +2 -2
- package/dist/types/src/Web.d.ts +5 -1
- package/dist/types/src/esbuildConfigs/featuresPlugin.d.ts +5 -0
- package/dist/types/src/esbuildConfigs/inputFilesPlugin.d.ts +4 -2
- package/dist/types/src/lib/abstractBase.d.ts +5 -5
- package/dist/types/src/lib/types.d.ts +7 -5
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +18 -41
- package/pupBuild.js +18 -0
- package/src/Node.ts +1 -3
- package/src/PM/index.ts +12 -3
- package/src/PM/main.ts +300 -164
- package/src/PM/node.ts +40 -6
- package/src/PM/web.ts +108 -58
- package/src/Project.ts +0 -8
- package/src/Puppeteer.ts +11 -57
- package/src/SubPackages/react-dom/jsx/web.ts +15 -10
- package/src/Types.ts +5 -2
- package/src/Web.ts +1 -1
- package/src/esbuildConfigs/featuresPlugin.ts +43 -0
- package/src/esbuildConfigs/inputFilesPlugin.ts +98 -66
- package/src/esbuildConfigs/node.ts +18 -3
- package/src/esbuildConfigs/web.ts +14 -2
- package/src/lib/abstractBase.ts +381 -364
- package/src/lib/basebuilder.ts +7 -7
- package/src/lib/core.ts +1 -1
- package/src/lib/types.ts +13 -5
package/src/lib/basebuilder.ts
CHANGED
|
@@ -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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|