testeranto 0.75.0 → 0.79.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/.eslintrc.js +5 -2
- package/Bundle.Dockerfile +52 -0
- package/README.md +25 -24
- package/build-tests.ts +16 -0
- package/dist/common/build-tests.js +38 -0
- package/dist/common/init-docs.js +8 -0
- package/dist/common/run-tests.js +34 -0
- package/dist/common/src/Aider.js +96 -0
- package/dist/common/src/Init.js +10 -0
- package/dist/common/{Node.js → src/Node.js} +1 -0
- package/dist/common/src/PM/index.js +7 -0
- package/dist/common/{PM → src/PM}/main.js +287 -10
- package/dist/common/{PM → src/PM}/node.js +4 -0
- package/dist/common/{PM → src/PM}/web.js +3 -0
- package/dist/common/{Project.js → src/Project.js} +15 -57
- package/dist/common/{Puppeteer.js → src/Puppeteer.js} +65 -26
- package/dist/common/{SubPackages → src/SubPackages}/react-dom/component/web.js +5 -25
- package/dist/common/src/SubPackages/react-dom/jsx/web.js +117 -0
- package/dist/common/{SubPackages/react-test-renderer/component/index.js → src/SubPackages/react-test-renderer/component/interface.js} +0 -20
- package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/node.js +2 -2
- package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/web.js +2 -2
- package/dist/common/{Types.js → src/Types.js} +0 -2
- package/dist/common/{esbuildConfigs → src/esbuildConfigs}/index.js +1 -0
- package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +52 -0
- package/dist/common/{esbuildConfigs → src/esbuildConfigs}/node.js +5 -1
- package/dist/common/src/esbuildConfigs/report.js +14 -0
- package/dist/common/{esbuildConfigs → src/esbuildConfigs}/web.js +3 -1
- package/dist/common/src/lib/abstractBase.js +581 -0
- package/dist/common/{lib → src/lib}/basebuilder.js +12 -38
- package/dist/common/{lib → src/lib}/classBuilder.js +1 -3
- package/dist/common/{lib → src/lib}/core.js +3 -5
- package/dist/common/src/lib/types.js +2 -0
- package/dist/common/src/utils.js +16 -0
- package/dist/common/testeranto.js +15 -0
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/build-tests.js +10 -0
- package/dist/module/init-docs.js +3 -0
- package/dist/module/run-tests.js +6 -0
- package/dist/module/src/Aider.js +89 -0
- package/dist/module/src/Init.js +5 -0
- package/dist/module/{Node.js → src/Node.js} +1 -0
- package/dist/module/src/PM/index.js +3 -0
- package/dist/module/src/PM/main.js +617 -0
- package/dist/module/{PM → src/PM}/node.js +4 -0
- package/dist/module/{PM → src/PM}/web.js +3 -0
- package/dist/module/{Project.js → src/Project.js} +15 -57
- package/dist/module/{Puppeteer.js → src/Puppeteer.js} +65 -26
- package/dist/module/{SubPackages → src/SubPackages}/react-dom/component/web.js +5 -25
- package/dist/module/src/SubPackages/react-dom/jsx/web.js +89 -0
- package/dist/module/{SubPackages/react-test-renderer/component/index.js → src/SubPackages/react-test-renderer/component/interface.js} +0 -20
- package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/node.js +1 -1
- package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/web.js +1 -1
- package/dist/module/{esbuildConfigs → src/esbuildConfigs}/index.js +1 -0
- package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +47 -0
- package/dist/module/{esbuildConfigs → src/esbuildConfigs}/node.js +5 -1
- package/dist/module/src/esbuildConfigs/report.js +14 -0
- package/dist/module/{esbuildConfigs → src/esbuildConfigs}/web.js +3 -1
- package/dist/module/src/lib/abstractBase.js +573 -0
- package/dist/module/{lib → src/lib}/basebuilder.js +12 -38
- package/dist/module/{lib → src/lib}/classBuilder.js +1 -3
- package/dist/module/{lib → src/lib}/core.js +3 -5
- package/dist/module/src/utils.js +9 -0
- package/dist/module/testeranto.js +13 -0
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/build-tests.d.ts +3 -0
- package/dist/types/init-docs.d.ts +2 -0
- package/dist/types/run-tests.d.ts +2 -0
- package/dist/types/src/Aider.d.ts +1 -0
- package/dist/types/src/Init.d.ts +2 -0
- package/dist/types/src/Node.d.ts +6 -0
- package/dist/types/{PM → src/PM}/index.d.ts +3 -2
- package/dist/types/{PM → src/PM}/main.d.ts +6 -3
- package/dist/types/{PM → src/PM}/node.d.ts +2 -0
- package/dist/types/{PM → src/PM}/web.d.ts +1 -0
- package/dist/types/{Project.d.ts → src/Project.d.ts} +1 -1
- package/dist/types/src/Puppeteer.d.ts +2 -0
- package/dist/types/src/SubPackages/puppeteer.d.ts +6 -0
- package/dist/types/{SubPackages → src/SubPackages}/react/component/node.d.ts +1 -1
- package/dist/types/{SubPackages → src/SubPackages}/react/component/web.d.ts +1 -1
- package/dist/types/src/SubPackages/react/jsx/node.d.ts +4 -0
- package/dist/types/src/SubPackages/react/jsx/web.d.ts +4 -0
- package/dist/types/{SubPackages → src/SubPackages}/react-dom/component/node.d.ts +2 -2
- package/dist/types/src/SubPackages/react-dom/component/web.d.ts +11 -0
- package/dist/types/src/SubPackages/react-dom/jsx/node.d.ts +6 -0
- package/dist/types/src/SubPackages/react-dom/jsx/web.d.ts +5 -0
- package/dist/types/src/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +5 -0
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/index.d.ts +0 -7
- package/dist/types/src/SubPackages/react-test-renderer/component/interface.d.ts +9 -0
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/node.d.ts +1 -2
- package/dist/types/src/SubPackages/react-test-renderer/component/web.d.ts +3 -0
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.d.ts +1 -1
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.d.ts +1 -1
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.d.ts +1 -2
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.d.ts +1 -2
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/node.d.ts +4 -0
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/web.d.ts +4 -0
- package/dist/types/src/Types.d.ts +51 -0
- package/dist/types/src/Web.d.ts +6 -0
- package/dist/types/src/esbuildConfigs/inputFilesPlugin.d.ts +5 -0
- package/dist/types/{lib → src/lib}/abstractBase.d.ts +8 -8
- package/dist/types/{lib → src/lib}/basebuilder.d.ts +1 -1
- package/dist/types/{lib → src/lib}/classBuilder.d.ts +1 -1
- package/dist/types/{lib → src/lib}/core.d.ts +1 -1
- package/dist/types/{lib → src/lib}/index.d.ts +5 -5
- package/dist/types/{lib → src/lib}/types.d.ts +15 -15
- package/dist/types/src/utils.d.ts +2 -0
- package/dist/types/testeranto.d.ts +16 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/docker-compose.yml +37 -0
- package/init-docs.ts +5 -0
- package/package.json +72 -25
- package/run-tests.ts +9 -0
- package/src/Aider.ts +125 -0
- package/src/Init.ts +20 -0
- package/src/Node.ts +31 -2
- package/src/PM/index.ts +7 -84
- package/src/PM/main.ts +400 -16
- package/src/PM/node.ts +6 -0
- package/src/PM/web.ts +4 -0
- package/src/Project.ts +33 -84
- package/src/Puppeteer.ts +115 -62
- package/src/SubPackages/react-dom/component/web.ts +10 -30
- package/src/SubPackages/react-dom/jsx/web.ts +110 -76
- package/src/SubPackages/react-test-renderer/component/index.ts +0 -66
- package/src/SubPackages/react-test-renderer/component/interface.ts +48 -0
- package/src/SubPackages/react-test-renderer/component/node.ts +2 -1
- package/src/SubPackages/react-test-renderer/component/web.ts +2 -1
- package/src/Types.ts +138 -29
- package/src/Web.ts +32 -2
- package/src/esbuildConfigs/index.ts +1 -0
- package/src/esbuildConfigs/inputFilesPlugin.ts +67 -0
- package/src/esbuildConfigs/node.ts +4 -2
- package/src/esbuildConfigs/report.ts +13 -13
- package/src/esbuildConfigs/web.ts +4 -0
- package/src/lib/abstractBase.ts +366 -36
- package/src/lib/basebuilder.ts +26 -52
- package/src/lib/classBuilder.ts +14 -2
- package/src/lib/core.ts +18 -7
- package/src/lib/index.ts +115 -7
- package/src/lib/types.ts +143 -37
- package/src/utils.ts +15 -0
- package/testeranto.ts +13 -0
- package/tsconfig.common.json +12 -4
- package/tsconfig.json +9 -3
- package/tsconfig.module.json +2 -3
- package/tsconfig.types.json +1 -2
- package/dist/common/Features.js +0 -84
- package/dist/common/PM/index.js +0 -71
- package/dist/common/Reporter.js +0 -119
- package/dist/common/Scheduler.js +0 -1
- package/dist/common/SubPackages/react-dom/jsx/web.js +0 -93
- package/dist/common/esbuildConfigs/report.js +0 -13
- package/dist/common/lib/abstractBase.js +0 -348
- package/dist/common/preload.js +0 -15
- package/dist/common/report.html.js +0 -31
- package/dist/module/Features.js +0 -73
- package/dist/module/PM/index.js +0 -67
- package/dist/module/PM/main.js +0 -340
- package/dist/module/Reporter.js +0 -114
- package/dist/module/Scheduler.js +0 -1
- package/dist/module/SubPackages/react-dom/jsx/web.js +0 -65
- package/dist/module/Types.js +0 -3
- package/dist/module/esbuildConfigs/report.js +0 -11
- package/dist/module/lib/abstractBase.js +0 -340
- package/dist/module/preload.js +0 -15
- package/dist/module/report.html.js +0 -29
- package/dist/prebuild/Report.css +0 -11358
- package/dist/prebuild/Report.js +0 -37585
- package/dist/types/Features.d.ts +0 -68
- package/dist/types/Node.d.ts +0 -6
- package/dist/types/SubPackages/puppeteer.d.ts +0 -6
- package/dist/types/SubPackages/react/jsx/node.d.ts +0 -4
- package/dist/types/SubPackages/react/jsx/web.d.ts +0 -4
- package/dist/types/SubPackages/react-dom/component/web.d.ts +0 -5
- package/dist/types/SubPackages/react-dom/jsx/node.d.ts +0 -6
- package/dist/types/SubPackages/react-dom/jsx/web.d.ts +0 -5
- package/dist/types/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +0 -5
- package/dist/types/SubPackages/react-test-renderer/component/web.d.ts +0 -4
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/node.d.ts +0 -5
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/web.d.ts +0 -5
- package/dist/types/Types.d.ts +0 -50
- package/dist/types/Web.d.ts +0 -6
- package/dist/types/esbuildConfigs/report.d.ts +0 -4
- package/dist/types/preload.d.ts +0 -0
- package/dist/types/report.html.d.ts +0 -2
- package/electronBuild.ts +0 -32
- package/src/Features.ts +0 -118
- package/src/Report.tsx +0 -521
- package/src/Reporter.ts +0 -134
- package/src/Scheduler.ts +0 -0
- package/src/preload.ts +0 -17
- package/src/report.html.ts +0 -29
- package/tests/Rectangle.test.ts +0 -189
- /package/dist/common/{SubPackages → src/SubPackages}/puppeteer.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react/component/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react/component/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/index.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-dom/component/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/index.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
- /package/dist/common/{lib/types.js → src/SubPackages/react-test-renderer/component/index.js} +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
- /package/dist/common/{Web.js → src/Web.js} +0 -0
- /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/features.js +0 -0
- /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/tests.js +0 -0
- /package/dist/common/{lib → src/lib}/index.js +0 -0
- /package/dist/common/{puppeteerConfiger.js → src/puppeteerConfiger.js} +0 -0
- /package/dist/common/{web.html.js → src/web.html.js} +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/puppeteer.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react/component/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react/component/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/index.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-dom/component/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/index.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
- /package/dist/module/{lib/types.js → src/SubPackages/react-test-renderer/component/index.js} +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
- /package/dist/{types/Puppeteer.d.ts → module/src/Types.js} +0 -0
- /package/dist/module/{Web.js → src/Web.js} +0 -0
- /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/features.js +0 -0
- /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/tests.js +0 -0
- /package/dist/module/{lib → src/lib}/index.js +0 -0
- /package/dist/{types/Reporter.d.ts → module/src/lib/types.js} +0 -0
- /package/dist/module/{puppeteerConfiger.js → src/puppeteerConfiger.js} +0 -0
- /package/dist/module/{web.html.js → src/web.html.js} +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react/jsx/index.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-dom/jsx/index.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/features.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/index.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/node.d.ts +0 -0
- /package/dist/types/{Scheduler.d.ts → src/esbuildConfigs/report.d.ts} +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/tests.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/web.d.ts +0 -0
- /package/dist/types/{puppeteerConfiger.d.ts → src/puppeteerConfiger.d.ts} +0 -0
- /package/dist/types/{web.html.d.ts → src/web.html.d.ts} +0 -0
package/tsconfig.json
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"module": "esnext",
|
|
5
5
|
"allowSyntheticDefaultImports": true,
|
|
6
|
+
"moduleResolution": "node",
|
|
7
|
+
"target": "es2020",
|
|
8
|
+
"esModuleInterop": true,
|
|
6
9
|
}
|
|
7
10
|
},
|
|
8
11
|
"declaration": true,
|
|
@@ -36,10 +39,13 @@
|
|
|
36
39
|
"alwaysStrict": true
|
|
37
40
|
},
|
|
38
41
|
"include": [
|
|
39
|
-
"src/**/*.*ts",
|
|
40
|
-
"
|
|
42
|
+
"./node_modules/testeranto/src/**/*.*ts",
|
|
43
|
+
"./**/*.*ts",
|
|
44
|
+
"./**/*.*tsx",
|
|
41
45
|
"index.d.ts",
|
|
42
|
-
"
|
|
46
|
+
"build-tests.ts",
|
|
47
|
+
"run-tests.ts",
|
|
48
|
+
"testeranto.ts",
|
|
43
49
|
],
|
|
44
50
|
"exclude": [
|
|
45
51
|
"node_modules",
|
package/tsconfig.module.json
CHANGED
package/tsconfig.types.json
CHANGED
package/dist/common/Features.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.DirectedGraph = exports.TesterantoFeatures = exports.TesterantoGraphDirectedAcyclic = exports.TesterantoGraphDirected = exports.TesterantoGraphUndirected = exports.BaseFeature = void 0;
|
|
7
|
-
const graphology_umd_js_1 = __importDefault(require("graphology/dist/graphology.umd.js"));
|
|
8
|
-
const { DirectedGraph, UndirectedGraph } = graphology_umd_js_1.default;
|
|
9
|
-
exports.DirectedGraph = DirectedGraph;
|
|
10
|
-
class TesterantoGraph {
|
|
11
|
-
constructor(name) {
|
|
12
|
-
this.name = name;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
class BaseFeature {
|
|
16
|
-
constructor(name) {
|
|
17
|
-
this.name = name;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.BaseFeature = BaseFeature;
|
|
21
|
-
class TesterantoGraphUndirected {
|
|
22
|
-
constructor(name) {
|
|
23
|
-
this.name = name;
|
|
24
|
-
this.graph = new UndirectedGraph();
|
|
25
|
-
}
|
|
26
|
-
connect(a, b, relation) {
|
|
27
|
-
this.graph.mergeEdge(a, b, { type: relation });
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.TesterantoGraphUndirected = TesterantoGraphUndirected;
|
|
31
|
-
class TesterantoGraphDirected {
|
|
32
|
-
constructor(name) {
|
|
33
|
-
this.name = name;
|
|
34
|
-
this.graph = new DirectedGraph();
|
|
35
|
-
}
|
|
36
|
-
connect(to, from, relation) {
|
|
37
|
-
this.graph.mergeEdge(to, from, { type: relation });
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
exports.TesterantoGraphDirected = TesterantoGraphDirected;
|
|
41
|
-
class TesterantoGraphDirectedAcyclic {
|
|
42
|
-
constructor(name) {
|
|
43
|
-
this.name = name;
|
|
44
|
-
this.graph = new DirectedGraph();
|
|
45
|
-
}
|
|
46
|
-
connect(to, from, relation) {
|
|
47
|
-
this.graph.mergeEdge(to, from, { type: relation });
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.TesterantoGraphDirectedAcyclic = TesterantoGraphDirectedAcyclic;
|
|
51
|
-
class TesterantoFeatures {
|
|
52
|
-
constructor(features, graphs) {
|
|
53
|
-
this.features = features;
|
|
54
|
-
this.graphs = graphs;
|
|
55
|
-
}
|
|
56
|
-
networks() {
|
|
57
|
-
return [
|
|
58
|
-
...this.graphs.undirected.values(),
|
|
59
|
-
...this.graphs.directed.values(),
|
|
60
|
-
...this.graphs.dags.values(),
|
|
61
|
-
];
|
|
62
|
-
}
|
|
63
|
-
toObj() {
|
|
64
|
-
return {
|
|
65
|
-
features: Object.entries(this.features).map(([name, feature]) => {
|
|
66
|
-
return Object.assign(Object.assign({}, feature), { inNetworks: this.networks()
|
|
67
|
-
.filter((network) => {
|
|
68
|
-
return network.graph.hasNode(feature.name);
|
|
69
|
-
})
|
|
70
|
-
.map((network) => {
|
|
71
|
-
return {
|
|
72
|
-
network: network.name,
|
|
73
|
-
neighbors: network.graph.neighbors(feature.name),
|
|
74
|
-
};
|
|
75
|
-
}) });
|
|
76
|
-
}),
|
|
77
|
-
networks: this.networks().map((network) => {
|
|
78
|
-
return Object.assign({}, network);
|
|
79
|
-
}),
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
exports.TesterantoFeatures = TesterantoFeatures;
|
|
84
|
-
exports.default = {};
|
package/dist/common/PM/index.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import {
|
|
3
|
-
// Browser,
|
|
4
|
-
// BrowserContext,
|
|
5
|
-
// BrowserContextOptions,
|
|
6
|
-
// DebugInfo,
|
|
7
|
-
// Page,
|
|
8
|
-
// PuppeteerNode,
|
|
9
|
-
// Target,
|
|
10
|
-
// } from "puppeteer-core";
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.PM = void 0;
|
|
13
|
-
const fPaths = [];
|
|
14
|
-
class PM {
|
|
15
|
-
}
|
|
16
|
-
exports.PM = PM;
|
|
17
|
-
// export class PuppetMasterBrowser extends Browser {
|
|
18
|
-
// process(): ChildProcess | null {
|
|
19
|
-
// return super.process();
|
|
20
|
-
// }
|
|
21
|
-
// createBrowserContext(
|
|
22
|
-
// options?: BrowserContextOptions
|
|
23
|
-
// ): Promise<BrowserContext> {
|
|
24
|
-
// throw new Error("Method not implemented.");
|
|
25
|
-
// }
|
|
26
|
-
// browserContexts(): BrowserContext[] {
|
|
27
|
-
// throw new Error("Method not implemented.");
|
|
28
|
-
// }
|
|
29
|
-
// defaultBrowserContext(): BrowserContext {
|
|
30
|
-
// throw new Error("Method not implemented.");
|
|
31
|
-
// }
|
|
32
|
-
// wsEndpoint(): string {
|
|
33
|
-
// throw new Error("Method not implemented.");
|
|
34
|
-
// }
|
|
35
|
-
// newPage(): Promise<Page> {
|
|
36
|
-
// throw new Error("Method not implemented.");
|
|
37
|
-
// }
|
|
38
|
-
// targets(): Target[] {
|
|
39
|
-
// throw new Error("Method not implemented.");
|
|
40
|
-
// }
|
|
41
|
-
// target(): Target {
|
|
42
|
-
// throw new Error("Method not implemented.");
|
|
43
|
-
// }
|
|
44
|
-
// version(): Promise<string> {
|
|
45
|
-
// throw new Error("Method not implemented.");
|
|
46
|
-
// }
|
|
47
|
-
// userAgent(): Promise<string> {
|
|
48
|
-
// throw new Error("Method not implemented.");
|
|
49
|
-
// }
|
|
50
|
-
// close(): Promise<void> {
|
|
51
|
-
// throw new Error("Method not implemented.");
|
|
52
|
-
// }
|
|
53
|
-
// disconnect(): Promise<void> {
|
|
54
|
-
// throw new Error("Method not implemented.");
|
|
55
|
-
// }
|
|
56
|
-
// get connected(): boolean {
|
|
57
|
-
// throw new Error("Method not implemented.");
|
|
58
|
-
// }
|
|
59
|
-
// get debugInfo(): DebugInfo {
|
|
60
|
-
// throw new Error("Method not implemented.");
|
|
61
|
-
// }
|
|
62
|
-
// constructor(...z: []) {
|
|
63
|
-
// super(...z);
|
|
64
|
-
// }
|
|
65
|
-
// // pages(): Promise<Page[]>;
|
|
66
|
-
// pages(): Promise<Page[]> {
|
|
67
|
-
// return new Promise<Page[]>((res, rej) => {
|
|
68
|
-
// res(super.pages());
|
|
69
|
-
// });
|
|
70
|
-
// }
|
|
71
|
-
// }
|
package/dist/common/Reporter.js
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const readline_1 = __importDefault(require("readline"));
|
|
7
|
-
const fs_1 = __importDefault(require("fs"));
|
|
8
|
-
const jsonc_1 = require("jsonc");
|
|
9
|
-
const puppeteer_core_1 = __importDefault(require("puppeteer-core"));
|
|
10
|
-
// import { PM_Main } from "./PM/main.js";
|
|
11
|
-
// var mode: "DEV" | "PROD" = process.argv[2] === "-dev" ? "DEV" : "PROD";
|
|
12
|
-
// const node2web: Record<string, string[]> = {};
|
|
13
|
-
// const web2node: Record<string, string[]> = {};
|
|
14
|
-
// const childProcesses: Record<string, "loaded" | "running" | "done"> = {};
|
|
15
|
-
readline_1.default.emitKeypressEvents(process.stdin);
|
|
16
|
-
if (process.stdin.isTTY)
|
|
17
|
-
process.stdin.setRawMode(true);
|
|
18
|
-
console.log("\n Puppeteer is running. Press 'q' to quit\n");
|
|
19
|
-
process.stdin.on("keypress", (str, key) => {
|
|
20
|
-
if (key.name === "q") {
|
|
21
|
-
process.exit();
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
const main = async () => {
|
|
25
|
-
const configs = jsonc_1.jsonc.parse((await fs_1.default.readFileSync("./docs/testeranto.json")).toString());
|
|
26
|
-
// const pm = new PM_Main(configs);
|
|
27
|
-
// await puppeteer.launch(options);
|
|
28
|
-
const browser = await puppeteer_core_1.default.launch({
|
|
29
|
-
waitForInitialPage: false,
|
|
30
|
-
executablePath: "/opt/homebrew/bin/chromium",
|
|
31
|
-
headless: false,
|
|
32
|
-
args: [
|
|
33
|
-
"--allow-file-access-from-files",
|
|
34
|
-
"--allow-running-insecure-content",
|
|
35
|
-
// "--auto-open-devtools-for-tabs",
|
|
36
|
-
"--disable-dev-shm-usage",
|
|
37
|
-
"--disable-extensions",
|
|
38
|
-
"--disable-gpu",
|
|
39
|
-
"--disable-setuid-sandbox",
|
|
40
|
-
"--disable-site-isolation-trials",
|
|
41
|
-
"--disable-web-security",
|
|
42
|
-
"--disable-web-security",
|
|
43
|
-
"--no-first-run",
|
|
44
|
-
"--no-sandbox",
|
|
45
|
-
"--no-startup-window",
|
|
46
|
-
"--no-zygote",
|
|
47
|
-
"--reduce-security-for-testing",
|
|
48
|
-
"--remote-allow-origins=*",
|
|
49
|
-
// "--remote-allow-origins=ws://localhost:3234",
|
|
50
|
-
"--unsafely-treat-insecure-origin-as-secure=*",
|
|
51
|
-
// "--disable-features=IsolateOrigins",
|
|
52
|
-
// "--single-process",
|
|
53
|
-
// "--unsafely-treat-insecure-origin-as-secure",
|
|
54
|
-
// "--unsafely-treat-insecure-origin-as-secure=ws://192.168.0.101:3234",
|
|
55
|
-
// `--remote-debugging-port=3234`,
|
|
56
|
-
],
|
|
57
|
-
}
|
|
58
|
-
// "."
|
|
59
|
-
);
|
|
60
|
-
console.log("Creating new page...");
|
|
61
|
-
const page = await browser.newPage();
|
|
62
|
-
await page.setViewport({ width: 0, height: 0 });
|
|
63
|
-
console.log("Requesting url...");
|
|
64
|
-
await page.goto(`file://${process.cwd()}/docs/report.html`);
|
|
65
|
-
// const destinationOfRuntime = (f: string, r: IRunTime) => {
|
|
66
|
-
// return path
|
|
67
|
-
// .normalize(`${configs.buildDir}/${r}/${f}`)
|
|
68
|
-
// .split(".")
|
|
69
|
-
// .slice(0, -1)
|
|
70
|
-
// .join(".");
|
|
71
|
-
// };
|
|
72
|
-
// configs.tests.forEach(([test, runtime, secondaryArtifacts]) => {
|
|
73
|
-
// if (runtime === "node") {
|
|
74
|
-
// pm.launchNode(test, destinationOfRuntime(test, "node"));
|
|
75
|
-
// } else if (runtime === "web") {
|
|
76
|
-
// pm.launchWeb(test, destinationOfRuntime(test, "web"));
|
|
77
|
-
// } else {
|
|
78
|
-
// console.error("runtime makes no sense", runtime);
|
|
79
|
-
// }
|
|
80
|
-
// });
|
|
81
|
-
// console.log("ready and watching for changes...", configs.buildDir);
|
|
82
|
-
// fs.watch(
|
|
83
|
-
// configs.buildDir,
|
|
84
|
-
// {
|
|
85
|
-
// recursive: true,
|
|
86
|
-
// },
|
|
87
|
-
// (eventType, changedFile) => {
|
|
88
|
-
// if (changedFile) {
|
|
89
|
-
// configs.tests.forEach(([test, runtime, secondaryArtifacts]) => {
|
|
90
|
-
// if (eventType === "change" || eventType === "rename") {
|
|
91
|
-
// if (
|
|
92
|
-
// changedFile ===
|
|
93
|
-
// test
|
|
94
|
-
// .replace("./", "node/")
|
|
95
|
-
// .split(".")
|
|
96
|
-
// .slice(0, -1)
|
|
97
|
-
// .concat("mjs")
|
|
98
|
-
// .join(".")
|
|
99
|
-
// ) {
|
|
100
|
-
// pm.launchNode(test, destinationOfRuntime(test, "node"));
|
|
101
|
-
// }
|
|
102
|
-
// if (
|
|
103
|
-
// changedFile ===
|
|
104
|
-
// test
|
|
105
|
-
// .replace("./", "web/")
|
|
106
|
-
// .split(".")
|
|
107
|
-
// .slice(0, -1)
|
|
108
|
-
// .concat("mjs")
|
|
109
|
-
// .join(".")
|
|
110
|
-
// ) {
|
|
111
|
-
// pm.launchWeb(test, destinationOfRuntime(test, "web"));
|
|
112
|
-
// }
|
|
113
|
-
// }
|
|
114
|
-
// });
|
|
115
|
-
// }
|
|
116
|
-
// }
|
|
117
|
-
// );
|
|
118
|
-
};
|
|
119
|
-
main();
|
package/dist/common/Scheduler.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const react_1 = __importStar(require("react"));
|
|
30
|
-
const react_dom_1 = require("react-dom");
|
|
31
|
-
const Web_js_1 = __importDefault(require("../../../Web.js"));
|
|
32
|
-
exports.default = (testImplementations, testSpecifications, testInput) => {
|
|
33
|
-
document.addEventListener("DOMContentLoaded", function () {
|
|
34
|
-
const rootElement = document.getElementById("root");
|
|
35
|
-
if (rootElement) {
|
|
36
|
-
const TesterantoComponent = function ({ done, innerComp, }) {
|
|
37
|
-
const myContainer = (0, react_1.useRef)(null);
|
|
38
|
-
(0, react_1.useEffect)(() => {
|
|
39
|
-
console.log("useEffect called", myContainer.current);
|
|
40
|
-
done(myContainer.current);
|
|
41
|
-
}, []);
|
|
42
|
-
return react_1.default.createElement("div", { ref: myContainer }, innerComp());
|
|
43
|
-
};
|
|
44
|
-
(0, Web_js_1.default)(testInput, testSpecifications, testImplementations, {
|
|
45
|
-
beforeAll: async (input, artificer) => {
|
|
46
|
-
return await new Promise((resolve, rej) => {
|
|
47
|
-
resolve(rootElement);
|
|
48
|
-
});
|
|
49
|
-
},
|
|
50
|
-
beforeEach: async (subject, ndx, testRsource, artificer) => {
|
|
51
|
-
return new Promise((resolve, rej) => {
|
|
52
|
-
(0, react_dom_1.createPortal)(TesterantoComponent({
|
|
53
|
-
innerComp: testInput,
|
|
54
|
-
done: (reactElement) => {
|
|
55
|
-
process.nextTick(() => {
|
|
56
|
-
resolve(reactElement);
|
|
57
|
-
});
|
|
58
|
-
},
|
|
59
|
-
}), rootElement);
|
|
60
|
-
});
|
|
61
|
-
},
|
|
62
|
-
andWhen: function (s, whenCB) {
|
|
63
|
-
return new Promise((resolve, rej) => {
|
|
64
|
-
process.nextTick(() => {
|
|
65
|
-
resolve(whenCB()(s));
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
},
|
|
69
|
-
butThen: async function (s) {
|
|
70
|
-
return new Promise((resolve, rej) => {
|
|
71
|
-
process.nextTick(() => {
|
|
72
|
-
resolve(s);
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
},
|
|
76
|
-
afterEach: async function (store, ndx, artificer) {
|
|
77
|
-
return new Promise((resolve, rej) => {
|
|
78
|
-
process.nextTick(() => {
|
|
79
|
-
resolve({});
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
},
|
|
83
|
-
afterAll: (store, artificer) => {
|
|
84
|
-
return new Promise((resolve, rej) => {
|
|
85
|
-
process.nextTick(() => {
|
|
86
|
-
resolve({});
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
},
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = (config) => {
|
|
4
|
-
return {
|
|
5
|
-
bundle: true,
|
|
6
|
-
entryPoints: ["./node_modules/testeranto/dist/module/report.js"],
|
|
7
|
-
minify: config.minify === true,
|
|
8
|
-
outbase: config.outbase,
|
|
9
|
-
write: true,
|
|
10
|
-
outfile: `${config.outdir}/report.js`,
|
|
11
|
-
external: ["tests.json", "features.test.js"],
|
|
12
|
-
};
|
|
13
|
-
};
|