testeranto 0.219.4 → 0.219.6
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/src/server/runtimes/node/docker.js +2 -3
- package/dist/common/src/server/runtimes/node/esbuild.js +4 -2
- package/dist/common/src/server/runtimes/node/node.js +1 -0
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/src/server/runtimes/node/docker.js +2 -3
- package/dist/module/src/server/runtimes/node/esbuild.js +4 -2
- package/dist/module/src/server/runtimes/node/node.js +1 -0
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/prebuild/server/runtimes/node/node.mjs +3 -2
- package/dist/prebuild/testeranto.mjs +2 -2
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/server/runtimes/node/docker.ts +2 -3
- package/src/server/runtimes/node/esbuild.ts +7 -2
- package/src/server/runtimes/node/node.ts +2 -0
package/package.json
CHANGED
|
@@ -28,9 +28,8 @@ const externalTests = true;
|
|
|
28
28
|
export const nodeBuildCommand = (fpath: string) => {
|
|
29
29
|
|
|
30
30
|
if (externalTests) {
|
|
31
|
-
console.log("external tests")
|
|
32
|
-
|
|
33
|
-
return `ls node_modules/testeranto/src`
|
|
31
|
+
console.log("external tests", process.cwd())
|
|
32
|
+
return `yarn tsx node_modules/testeranto/src/server/runtimes/node/node.ts ${fpath}`;
|
|
34
33
|
// return ["sh", "-c", "cd /workspace && javac -cp \".:lib/*\" src/server/runtimes/java/main.java && java -cp \"src/server/runtimes/java:.\" main"]
|
|
35
34
|
} else {
|
|
36
35
|
console.log("not external tests")
|
|
@@ -13,14 +13,19 @@ export default (
|
|
|
13
13
|
config: ITestconfig,
|
|
14
14
|
testName: string
|
|
15
15
|
): BuildOptions => {
|
|
16
|
+
|
|
17
|
+
console.log(config)
|
|
18
|
+
|
|
16
19
|
// Get entry points from config, or use a default
|
|
17
20
|
let entrypoints: string[] = [];
|
|
18
21
|
if (config.node?.tests) {
|
|
19
22
|
entrypoints = Object.keys(config.node.tests);
|
|
20
23
|
} else {
|
|
24
|
+
|
|
25
|
+
throw "config.node.tests should exist"
|
|
21
26
|
// Fallback to a reasonable default
|
|
22
|
-
entrypoints = ["./example/Calculator.test.ts"];
|
|
23
|
-
console.warn(`No node.tests found in config, using default entry point: ${entrypoints[0]}`);
|
|
27
|
+
// entrypoints = ["./example/Calculator.test.ts"];
|
|
28
|
+
// console.warn(`No node.tests found in config, using default entry point: ${entrypoints[0]}`);
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
const { inputFilesPluginFactory, register } = inputFilesPlugin(
|
|
@@ -9,6 +9,8 @@ import {
|
|
|
9
9
|
const configFilePath = process.argv[2];
|
|
10
10
|
const testName = process.argv[3] || "allTests";
|
|
11
11
|
|
|
12
|
+
console.log(`[NODE BUILDER] configFilePath: ${configFilePath}`);
|
|
13
|
+
|
|
12
14
|
// run esbuild in watch mode using esbuildConfigs. Write to fs the bundle and metafile
|
|
13
15
|
async function startBundling(
|
|
14
16
|
config: IBuiltConfig
|