testeranto 0.79.38 → 0.79.39

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.
@@ -0,0 +1,26 @@
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
+ var mode = process.argv[2] === "-dev" ? "DEV" : "PROD";
9
+ const node2web = {};
10
+ const web2node = {};
11
+ const childProcesses = {};
12
+ readline_1.default.emitKeypressEvents(process.stdin);
13
+ if (process.stdin.isTTY)
14
+ process.stdin.setRawMode(true);
15
+ console.log("\n Puppeteer is running. Press 'q' to quit\n");
16
+ process.stdin.on("keypress", (str, key) => {
17
+ if (key.name === "q") {
18
+ process.exit();
19
+ }
20
+ });
21
+ exports.default = async (partialConfig) => {
22
+ const config = Object.assign(Object.assign({}, partialConfig), { buildDir: process.cwd() + "/" + partialConfig.outdir });
23
+ fs_1.default.writeFileSync(`${config.outdir}/testeranto.json`, JSON.stringify(Object.assign(Object.assign({}, config), { buildDir: process.cwd() + "/" + config.outdir }), null, 2));
24
+ fs_1.default.copyFileSync("./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.js", "docs/TaskManFrontEnd.js");
25
+ fs_1.default.copyFileSync("./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.css", "docs/TaskManFrontEnd.css");
26
+ };
@@ -67,26 +67,6 @@ class ITProject {
67
67
  })));
68
68
  const [nodeEntryPoints, webEntryPoints] = getRunnables(this.config.tests);
69
69
  console.log(`this.getSecondaryEndpointsPoints("web")`, this.getSecondaryEndpointsPoints("web"));
70
- // console.log("nodeEntryPoints", nodeEntryPoints);
71
- // console.log("webEntryPoints", webEntryPoints);
72
- // nodeEntryPoints.forEach((nep) => {
73
- // const f = `${process.cwd()}/${nep}`;
74
- // console.log("nep", f);
75
- // import(f).then((module) => {
76
- // return module.default.then((defaultModule) => {
77
- // console.log("defaultModule", defaultModule);
78
- // // defaultModule
79
- // // .receiveTestResourceConfig(argz)
80
- // // .then((x) => {
81
- // // console.log("then", x);
82
- // // return x;
83
- // // })
84
- // // .catch((e) => {
85
- // // console.log("catch", e);
86
- // // });
87
- // });
88
- // });
89
- // });
90
70
  (0, glob_1.glob)(`./${this.config.outdir}/chunk-*.mjs`, {
91
71
  ignore: "node_modules/**",
92
72
  }).then((chunks) => {