testeranto 0.221.3 → 0.221.4
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.
|
@@ -82,6 +82,7 @@ var nodeDockerComposeFile = (config, container_name, projectConfigPath, nodeConf
|
|
|
82
82
|
container_name,
|
|
83
83
|
environment: {
|
|
84
84
|
NODE_ENV: "production",
|
|
85
|
+
ENV: "node",
|
|
85
86
|
...config.env
|
|
86
87
|
},
|
|
87
88
|
working_dir: "/workspace",
|
|
@@ -95,7 +96,7 @@ var nodeDockerComposeFile = (config, container_name, projectConfigPath, nodeConf
|
|
|
95
96
|
};
|
|
96
97
|
};
|
|
97
98
|
var nodeBuildCommand = (projectConfigPath, nodeConfigPath, testName) => {
|
|
98
|
-
return `yarn tsx node_modules/testeranto/src/server/runtimes/node/node.ts /workspace/testeranto/testeranto.ts /workspace/${nodeConfigPath} ${testName}`;
|
|
99
|
+
return `ENV=node yarn tsx node_modules/testeranto/src/server/runtimes/node/node.ts /workspace/testeranto/testeranto.ts /workspace/${nodeConfigPath} ${testName}`;
|
|
99
100
|
};
|
|
100
101
|
var nodeBddCommand = (fpath, nodeConfigPath) => {
|
|
101
102
|
return `yarn tsx testeranto/bundles/allTests/node/src/ts/Calculator.test.mjs /workspace/${nodeConfigPath}`;
|
package/package.json
CHANGED
|
@@ -17,18 +17,19 @@ import { ITTestResourceRequest, defaultTestResourceRequirement } from "./types";
|
|
|
17
17
|
|
|
18
18
|
let tpskrt;
|
|
19
19
|
const tpskrtNode = await import("./Node");
|
|
20
|
-
const tpskrtWeb = await import("./Web");
|
|
20
|
+
// const tpskrtWeb = await import("./Web");
|
|
21
21
|
|
|
22
|
+
tpskrt = tpskrtNode
|
|
22
23
|
// Use esbuild define to distinguish environments
|
|
23
|
-
declare const ENV: "node" | "web";
|
|
24
|
+
// declare const ENV: "node" | "web";
|
|
24
25
|
|
|
25
|
-
if (ENV === "node") {
|
|
26
|
-
|
|
27
|
-
} else if (ENV === "web") {
|
|
28
|
-
|
|
29
|
-
} else {
|
|
30
|
-
|
|
31
|
-
}
|
|
26
|
+
// if (ENV === "node") {
|
|
27
|
+
// tpskrt = tpskrtNode
|
|
28
|
+
// } else if (ENV === "web") {
|
|
29
|
+
// tpskrt = tpskrtWeb
|
|
30
|
+
// } else {
|
|
31
|
+
// throw `Unknown ENV ${ENV}`;
|
|
32
|
+
// }
|
|
32
33
|
|
|
33
34
|
export default async <I extends Ibdd_in_any, O extends Ibdd_out, M>(
|
|
34
35
|
input: I["iinput"],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ITestconfigV2 } from "
|
|
1
|
+
import { ITestconfigV2 } from "../../../Types";
|
|
2
2
|
|
|
3
3
|
export const nodeDockerComposeFile = (
|
|
4
4
|
config: ITestconfigV2,
|
|
@@ -15,6 +15,7 @@ export const nodeDockerComposeFile = (
|
|
|
15
15
|
container_name,
|
|
16
16
|
environment: {
|
|
17
17
|
NODE_ENV: "production",
|
|
18
|
+
ENV: "node",
|
|
18
19
|
...config.env,
|
|
19
20
|
},
|
|
20
21
|
working_dir: "/workspace",
|
|
@@ -31,7 +32,7 @@ export const nodeDockerComposeFile = (
|
|
|
31
32
|
|
|
32
33
|
|
|
33
34
|
export const nodeBuildCommand = (projectConfigPath: string, nodeConfigPath: string, testName: string) => {
|
|
34
|
-
return `yarn tsx node_modules/testeranto/src/server/runtimes/node/node.ts /workspace/testeranto/testeranto.ts /workspace/${nodeConfigPath} ${testName}`;
|
|
35
|
+
return `ENV=node yarn tsx node_modules/testeranto/src/server/runtimes/node/node.ts /workspace/testeranto/testeranto.ts /workspace/${nodeConfigPath} ${testName}`;
|
|
35
36
|
|
|
36
37
|
// node testeranto/bundles/allTests/node/src/ts/Calculator.test.mjs /workspace/testeranto/runtimes/node/node.mjs
|
|
37
38
|
|