testeranto 0.135.0 → 0.140.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/.aider.chat.history.md +13976 -0
- package/.aider.input.history +530 -0
- package/.aider.tags.cache.v3/{d8/b0/a8966fcd65890fd9f70d7afe8141.val → bd/91/b71f967fd074cf4b757081b429b7.val} +0 -0
- package/.aider.tags.cache.v3/cache.db +0 -0
- package/.aider.tags.cache.v3/{8e/ec/2d4659a1589a0187a757ab1cbefa.val → fb/96/b0f91c7e75e08fc5a6907633cf99.val} +0 -0
- package/README.md +28 -135
- package/bundle.js +1 -1
- package/dist/common/src/Init.js +4 -1
- package/dist/common/src/Node.js +1 -1
- package/dist/common/src/PM/__tests__/nodeSidecar.testeranto.js +2 -2
- package/dist/common/src/Web.js +2 -2
- package/dist/common/src/build.js +7 -73
- package/dist/common/src/defaultConfig.js +0 -1
- package/dist/common/src/lib/abstractBase.js +2 -0
- package/dist/common/src/lib/basebuilder.js +4 -0
- package/dist/common/src/lib/core.js +2 -0
- package/dist/common/src/run.js +1 -1
- package/dist/common/src/utils/buildTemplates.js +88 -0
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/src/Init.js +4 -1
- package/dist/module/src/Node.js +1 -1
- package/dist/module/src/PM/__tests__/nodeSidecar.testeranto.js +2 -2
- package/dist/module/src/Project.js +41 -47
- package/dist/module/src/TestReport.js +34 -31
- package/dist/module/src/Web.js +2 -2
- package/dist/module/src/build.js +7 -73
- package/dist/module/src/defaultConfig.js +0 -1
- package/dist/module/src/lib/abstractBase.js +2 -0
- package/dist/module/src/lib/basebuilder.js +4 -0
- package/dist/module/src/lib/core.js +2 -0
- package/dist/module/src/run.js +1 -1
- package/dist/module/src/utils/buildTemplates.js +82 -0
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/Project.js +62 -13
- package/dist/prebuild/TestReport.js +39 -18
- package/dist/prebuild/build.mjs +96 -73
- package/dist/prebuild/init-docs.mjs +0 -4
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/src/CoreTypes.d.ts +5 -3
- package/dist/types/src/Node.d.ts +3 -3
- package/dist/types/src/PM/__tests__/nodeSidecar.testeranto.d.ts +17 -1
- package/dist/types/src/PM/__tests__/pureSidecar.testeranto.d.ts +17 -1
- package/dist/types/src/PM/__tests__/webSidecar.testeranto.d.ts +17 -1
- package/dist/types/src/PM/nodeSidecar.d.ts +2 -2
- package/dist/types/src/Pure.d.ts +3 -3
- package/dist/types/src/Types.d.ts +18 -14
- package/dist/types/src/Web.d.ts +3 -3
- package/dist/types/src/lib/abstractBase.d.ts +8 -8
- package/dist/types/src/lib/basebuilder.d.ts +3 -3
- package/dist/types/src/lib/classBuilder.d.ts +2 -2
- package/dist/types/src/lib/core.d.ts +2 -2
- package/dist/types/src/lib/index.d.ts +7 -6
- package/dist/types/src/lib/types.d.ts +8 -8
- package/dist/types/src/mothership/test.d.ts +20 -1
- package/dist/types/src/utils/buildTemplates.d.ts +3 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/docs/index.md +344 -54
- package/docs/style.md +116 -0
- package/docs.html +537 -0
- package/example.css +351 -0
- package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Black.ttf +0 -0
- package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Bold.ttf +0 -0
- package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-ExtraBold.ttf +0 -0
- package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Light.ttf +0 -0
- package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Medium.ttf +0 -0
- package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Regular.ttf +0 -0
- package/fonts/M_PLUS_Rounded_1c/MPLUSRounded1c-Thin.ttf +0 -0
- package/fonts/M_PLUS_Rounded_1c/OFL.txt +91 -0
- package/index.html +245 -24
- package/logo.svg +72 -0
- package/package.json +6 -2
- package/scripts/compile-docs.js +89 -0
- package/src/CoreTypes.ts +24 -43
- package/src/Init.ts +4 -4
- package/src/Node.ts +6 -20
- package/src/PM/__tests__/nodeSidecar.testeranto.ts +13 -20
- package/src/PM/__tests__/pureSidecar.testeranto.ts +8 -15
- package/src/PM/__tests__/webSidecar.testeranto.ts +8 -15
- package/src/PM/nodeSidecar.ts +2 -2
- package/src/PM/pure.ts +0 -4
- package/src/Project.tsx +289 -292
- package/src/Pure.ts +13 -14
- package/src/PureSidecar.ts +1 -0
- package/src/TestReport.tsx +179 -165
- package/src/Types.ts +29 -144
- package/src/Web.ts +15 -11
- package/src/build.ts +22 -73
- package/src/defaultConfig.ts +2 -1
- package/src/lib/BaseSuite.test.ts +457 -0
- package/src/lib/BaseSuite.ts +155 -0
- package/src/lib/abstractBase.ts +7 -162
- package/src/lib/basebuilder.ts +11 -11
- package/src/lib/classBuilder.ts +8 -3
- package/src/lib/core.ts +12 -12
- package/src/lib/index.ts +21 -24
- package/src/lib/types.ts +23 -9
- package/src/mothership/test.ts +13 -10
- package/src/run.ts +1 -1
- package/src/style.css +1 -1
- package/src/utils/buildTemplates.ts +88 -0
- package/style.css +496 -0
- package/testeranto/bundles/node/{mothership/chunk-V2EQEXU2.mjs → allTests/chunk-4PJCC2XT.mjs} +66 -59
- package/testeranto/bundles/node/allTests/metafile.json +4151 -0
- package/testeranto/bundles/node/allTests/src/PM/__tests__/nodeSidecar.testeranto.mjs +187 -0
- package/testeranto/bundles/node/{mothership → allTests}/src/PM/__tests__/pureSidecar.testeranto.mjs +1 -1
- package/testeranto/bundles/node/{mothership → allTests}/src/PM/__tests__/webSidecar.testeranto.mjs +1 -1
- package/testeranto/bundles/node/allTests/src/lib/BaseSuite.test.mjs +305 -0
- package/testeranto/bundles/node/{mothership → allTests}/src/mothership/test.mjs +1 -1
- package/testeranto/dev.html +29 -0
- package/testeranto/index.html +28 -27
- package/testeranto/reports/allTests/config.json +57 -0
- package/testeranto/reports/{mothership/index.html → allTests/dev.html} +2 -0
- package/testeranto/reports/allTests/index.html +26 -0
- package/testeranto/reports/{mothership/src/PM/__tests__/sidecar.testeranto/node/index.html → allTests/src/PM/__tests__/nodeSidecar.testeranto/node/dev.html} +4 -3
- package/testeranto/reports/allTests/src/PM/__tests__/nodeSidecar.testeranto/node/index.html +21 -0
- package/testeranto/reports/allTests/src/PM/__tests__/nodeSidecar.testeranto/node/lint_errors.json +80 -0
- package/testeranto/reports/allTests/src/PM/__tests__/nodeSidecar.testeranto/node/message +1 -0
- package/testeranto/reports/allTests/src/PM/__tests__/nodeSidecar.testeranto/node/prompt.txt +8 -0
- package/testeranto/reports/allTests/src/PM/__tests__/nodeSidecar.testeranto/node/type_errors.txt +28 -0
- package/testeranto/reports/{mothership/src/PM/__tests__/webSidecar.testeranto/node/index.html → allTests/src/PM/__tests__/pureSidecar.testeranto/node/dev.html} +4 -3
- package/testeranto/reports/allTests/src/PM/__tests__/pureSidecar.testeranto/node/index.html +21 -0
- package/testeranto/reports/{mothership → allTests}/src/PM/__tests__/pureSidecar.testeranto/node/lint_errors.json +12 -12
- package/testeranto/reports/allTests/src/PM/__tests__/pureSidecar.testeranto/node/message +1 -0
- package/testeranto/reports/allTests/src/PM/__tests__/pureSidecar.testeranto/node/prompt.txt +8 -0
- package/testeranto/reports/allTests/src/PM/__tests__/pureSidecar.testeranto/node/type_errors.txt +32 -0
- package/testeranto/reports/{mothership/src/PM/__tests__/nodeSidecar.testeranto/node/index.html → allTests/src/PM/__tests__/webSidecar.testeranto/node/dev.html} +4 -3
- package/testeranto/reports/allTests/src/PM/__tests__/webSidecar.testeranto/node/index.html +21 -0
- package/testeranto/reports/{mothership → allTests}/src/PM/__tests__/webSidecar.testeranto/node/lint_errors.json +12 -12
- package/testeranto/reports/allTests/src/PM/__tests__/webSidecar.testeranto/node/message +1 -0
- package/testeranto/reports/allTests/src/PM/__tests__/webSidecar.testeranto/node/prompt.txt +8 -0
- package/testeranto/reports/allTests/src/PM/__tests__/webSidecar.testeranto/node/type_errors.txt +32 -0
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node/console_log.txt +35 -0
- package/testeranto/reports/{mothership/src/PM/__tests__/pureSidecar.testeranto/node/index.html → allTests/src/lib/BaseSuite.test/node/dev.html} +4 -3
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node/index.html +21 -0
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node/lint_errors.json +608 -0
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node/message +1 -0
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node/prompt.txt +7 -0
- package/testeranto/reports/allTests/src/lib/BaseSuite.test/node/type_errors.txt +68 -0
- package/testeranto/reports/allTests/src/mothership/test/node/dev.html +21 -0
- package/testeranto/reports/allTests/src/mothership/test/node/index.html +21 -0
- package/testeranto/reports/allTests/src/mothership/test/node/message +1 -0
- package/testeranto/reports/allTests/src/mothership/test/node/prompt.txt +8 -0
- package/testeranto/reports/allTests/src/mothership/test/node/type_errors.txt +24 -0
- package/testeranto/reports/allTests/summary.json +37 -0
- package/testeranto.config.ts +16 -26
- package/tsc.log +66 -69
- package/dist/common/src/SP__Polygon.test.js +0 -10
- package/dist/module/src/ReportClient.js +0 -132
- package/dist/module/src/SP__Polygon.test.js +0 -8
- package/dist/prebuild/ReportClient.js +0 -3
- package/dist/types/src/SP__Polygon.test.d.ts +0 -1
- package/src/ReportClient.tsx +0 -164
- package/src/SP__Polygon.test.ts +0 -13
- package/testeranto/ReportClient.css +0 -11367
- package/testeranto/ReportClient.js +0 -24641
- package/testeranto/bundles/node/mothership/metafile.json +0 -389
- package/testeranto/bundles/node/mothership/src/PM/__tests__/nodeSidecar.testeranto.mjs +0 -1219
- package/testeranto/bundles/node/mothership/src/PM/__tests__/sidecar.testeranto.mjs +0 -1199
- package/testeranto/reports/mothership/config.json +0 -25
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/console_log.txt +0 -0
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/lint_errors.json +0 -1564
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/prompt.txt +0 -22
- package/testeranto/reports/mothership/src/PM/__tests__/nodeSidecar.testeranto/node/type_errors.txt +0 -35
- package/testeranto/reports/mothership/src/PM/__tests__/pureSidecar.testeranto/node/prompt.txt +0 -12
- package/testeranto/reports/mothership/src/PM/__tests__/pureSidecar.testeranto/node/type_errors.txt +0 -26
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/bdd_errors.txt +0 -1
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/console_log.txt +0 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/lint_errors.json +0 -1564
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/log.txt +0 -0
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/prompt.txt +0 -22
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/tests.json +0 -56
- package/testeranto/reports/mothership/src/PM/__tests__/sidecar.testeranto/node/type_errors.txt +0 -29
- package/testeranto/reports/mothership/src/PM/__tests__/webSidecar.testeranto/node/prompt.txt +0 -12
- package/testeranto/reports/mothership/src/PM/__tests__/webSidecar.testeranto/node/type_errors.txt +0 -26
- package/testeranto/reports/mothership/src/mothership/test/node/bdd_errors.txt +0 -1
- package/testeranto/reports/mothership/src/mothership/test/node/console_log.txt +0 -4
- package/testeranto/reports/mothership/src/mothership/test/node/index.html +0 -20
- package/testeranto/reports/mothership/src/mothership/test/node/log.txt +0 -0
- package/testeranto/reports/mothership/src/mothership/test/node/prompt.txt +0 -12
- package/testeranto/reports/mothership/src/mothership/test/node/tests.json +0 -24
- package/testeranto/reports/mothership/src/mothership/test/node/type_errors.txt +0 -18
- package/testeranto/reports/mothership/summary.json +0 -9
- /package/testeranto/bundles/node/{mothership → allTests}/chunk-PG6KUKNP.mjs +0 -0
- /package/testeranto/bundles/pure/{mothership → allTests}/metafile.json +0 -0
- /package/testeranto/bundles/web/{mothership → allTests}/metafile.json +0 -0
- /package/testeranto/reports/{mothership/src/PM/__tests__/nodeSidecar.testeranto → allTests/src/lib/BaseSuite.test}/node/log.txt +0 -0
- /package/testeranto/reports/{mothership → allTests}/src/mothership/test/node/lint_errors.json +0 -0
|
@@ -3,23 +3,11 @@ import { ITTestResourceConfiguration } from "../../lib";
|
|
|
3
3
|
import { PM_Node_Sidecar } from "../nodeSidecar";
|
|
4
4
|
import Testeranto from "../../Node";
|
|
5
5
|
import {
|
|
6
|
+
Ibdd_in_any,
|
|
6
7
|
Ibdd_out,
|
|
7
|
-
ITestSpecification,
|
|
8
|
-
IT,
|
|
9
8
|
ITestImplementation,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "../../Types";
|
|
13
|
-
|
|
14
|
-
type I = Ibdd_in<
|
|
15
|
-
PM_Node_Sidecar,
|
|
16
|
-
PM_Node_Sidecar,
|
|
17
|
-
unknown,
|
|
18
|
-
unknown,
|
|
19
|
-
unknown,
|
|
20
|
-
unknown,
|
|
21
|
-
unknown
|
|
22
|
-
>;
|
|
9
|
+
ITestSpecification,
|
|
10
|
+
} from "../../CoreTypes";
|
|
23
11
|
|
|
24
12
|
type O = Ibdd_out<
|
|
25
13
|
{
|
|
@@ -41,7 +29,12 @@ type O = Ibdd_out<
|
|
|
41
29
|
}
|
|
42
30
|
>;
|
|
43
31
|
|
|
44
|
-
const specification: ITestSpecification<
|
|
32
|
+
const specification: ITestSpecification<Ibdd_in_any, O> = (
|
|
33
|
+
Suite,
|
|
34
|
+
Given,
|
|
35
|
+
When,
|
|
36
|
+
Then
|
|
37
|
+
) => {
|
|
45
38
|
return [
|
|
46
39
|
Suite.SidecarInitialized(
|
|
47
40
|
"Sidecar message passing works correctly",
|
|
@@ -84,7 +77,7 @@ const implementation: ITestImplementation<I, O> = {
|
|
|
84
77
|
callbackFn = callback;
|
|
85
78
|
callback(
|
|
86
79
|
JSON.stringify({
|
|
87
|
-
key: "mock-key",
|
|
80
|
+
key: "mock-key",
|
|
88
81
|
payload: message,
|
|
89
82
|
})
|
|
90
83
|
);
|
|
@@ -92,9 +85,9 @@ const implementation: ITestImplementation<I, O> = {
|
|
|
92
85
|
return mockProcess;
|
|
93
86
|
},
|
|
94
87
|
addListener: () => mockProcess,
|
|
95
|
-
removeListener: () => mockProcess
|
|
88
|
+
removeListener: () => mockProcess,
|
|
96
89
|
} as unknown as NodeJS.Process;
|
|
97
|
-
|
|
90
|
+
|
|
98
91
|
process = mockProcess;
|
|
99
92
|
|
|
100
93
|
let writeCalled = false;
|
|
@@ -118,7 +111,7 @@ const implementation: ITestImplementation<I, O> = {
|
|
|
118
111
|
removeListener: () => {
|
|
119
112
|
removeListenerCalled = true;
|
|
120
113
|
return mockProcess;
|
|
121
|
-
}
|
|
114
|
+
},
|
|
122
115
|
} as unknown as NodeJS.Process;
|
|
123
116
|
process = mockProcess;
|
|
124
117
|
|
|
@@ -5,21 +5,9 @@ import Testeranto from "../../Node";
|
|
|
5
5
|
import {
|
|
6
6
|
Ibdd_out,
|
|
7
7
|
ITestSpecification,
|
|
8
|
-
IT,
|
|
9
8
|
ITestImplementation,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "../../Types";
|
|
13
|
-
|
|
14
|
-
type I = Ibdd_in<
|
|
15
|
-
PM_Pure_Sidecar,
|
|
16
|
-
PM_Pure_Sidecar,
|
|
17
|
-
unknown,
|
|
18
|
-
unknown,
|
|
19
|
-
unknown,
|
|
20
|
-
unknown,
|
|
21
|
-
unknown
|
|
22
|
-
>;
|
|
9
|
+
Ibdd_in_any,
|
|
10
|
+
} from "../../CoreTypes";
|
|
23
11
|
|
|
24
12
|
type O = Ibdd_out<
|
|
25
13
|
{
|
|
@@ -41,7 +29,12 @@ type O = Ibdd_out<
|
|
|
41
29
|
}
|
|
42
30
|
>;
|
|
43
31
|
|
|
44
|
-
const specification: ITestSpecification<
|
|
32
|
+
const specification: ITestSpecification<Ibdd_in_any, O> = (
|
|
33
|
+
Suite,
|
|
34
|
+
Given,
|
|
35
|
+
When,
|
|
36
|
+
Then
|
|
37
|
+
) => {
|
|
45
38
|
return [
|
|
46
39
|
Suite.SidecarInitialized(
|
|
47
40
|
"Pure Sidecar message passing works correctly",
|
|
@@ -5,21 +5,9 @@ import Testeranto from "../../Node";
|
|
|
5
5
|
import {
|
|
6
6
|
Ibdd_out,
|
|
7
7
|
ITestSpecification,
|
|
8
|
-
IT,
|
|
9
8
|
ITestImplementation,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "../../Types";
|
|
13
|
-
|
|
14
|
-
type I = Ibdd_in<
|
|
15
|
-
PM_Web_Sidecar,
|
|
16
|
-
PM_Web_Sidecar,
|
|
17
|
-
unknown,
|
|
18
|
-
unknown,
|
|
19
|
-
unknown,
|
|
20
|
-
unknown,
|
|
21
|
-
unknown
|
|
22
|
-
>;
|
|
9
|
+
Ibdd_in_any,
|
|
10
|
+
} from "../../CoreTypes";
|
|
23
11
|
|
|
24
12
|
type O = Ibdd_out<
|
|
25
13
|
{
|
|
@@ -41,7 +29,12 @@ type O = Ibdd_out<
|
|
|
41
29
|
}
|
|
42
30
|
>;
|
|
43
31
|
|
|
44
|
-
const specification: ITestSpecification<
|
|
32
|
+
const specification: ITestSpecification<Ibdd_in_any, O> = (
|
|
33
|
+
Suite,
|
|
34
|
+
Given,
|
|
35
|
+
When,
|
|
36
|
+
Then
|
|
37
|
+
) => {
|
|
45
38
|
return [
|
|
46
39
|
Suite.SidecarInitialized(
|
|
47
40
|
"Web Sidecar message passing works correctly",
|
package/src/PM/nodeSidecar.ts
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
/* eslint-disable prefer-rest-params */
|
|
4
4
|
import net from "net";
|
|
5
5
|
|
|
6
|
-
import { ITTestResourceConfiguration } from "../lib";
|
|
6
|
+
import { ITLog, ITTestResourceConfiguration } from "../lib";
|
|
7
7
|
|
|
8
8
|
import { PM_sidecar } from "./sidecar";
|
|
9
|
+
import { PassThrough } from "stream";
|
|
9
10
|
|
|
10
11
|
type IFPaths = string[];
|
|
11
12
|
const fPaths: IFPaths = [];
|
|
@@ -13,7 +14,6 @@ const fPaths: IFPaths = [];
|
|
|
13
14
|
export class PM_Node_Sidecar extends PM_sidecar {
|
|
14
15
|
testResourceConfiguration: ITTestResourceConfiguration;
|
|
15
16
|
client: net.Socket;
|
|
16
|
-
mockListener?: jest.Mock;
|
|
17
17
|
|
|
18
18
|
constructor(t: ITTestResourceConfiguration) {
|
|
19
19
|
super();
|
package/src/PM/pure.ts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
3
|
|
|
4
|
-
// import fs from "fs";
|
|
5
|
-
// import path from "path";
|
|
6
|
-
|
|
7
4
|
import { ScreencastOptions } from "puppeteer-core";
|
|
8
5
|
import { CdpPage } from "puppeteer-core/lib/esm/puppeteer";
|
|
9
|
-
import { PassThrough } from "stream";
|
|
10
6
|
|
|
11
7
|
import { ITLog, ITTestResourceConfiguration } from "../lib";
|
|
12
8
|
|