testeranto 0.219.4 → 0.219.5
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 +2 -2
- package/src/server/runtimes/node/docker.ts +2 -3
- package/src/server/runtimes/node/esbuild.ts +4 -2
- package/src/server/runtimes/node/node.ts +2 -0
|
@@ -23,9 +23,8 @@ exports.nodeDockerComposeFile = nodeDockerComposeFile;
|
|
|
23
23
|
const externalTests = true;
|
|
24
24
|
const nodeBuildCommand = (fpath) => {
|
|
25
25
|
if (externalTests) {
|
|
26
|
-
console.log("external tests");
|
|
27
|
-
|
|
28
|
-
return `ls node_modules/testeranto/src`;
|
|
26
|
+
console.log("external tests", process.cwd());
|
|
27
|
+
return `yarn tsx node_modules/testeranto/src/server/runtimes/node/node.ts ${fpath}`;
|
|
29
28
|
// return ["sh", "-c", "cd /workspace && javac -cp \".:lib/*\" src/server/runtimes/java/main.java && java -cp \"src/server/runtimes/java:.\" main"]
|
|
30
29
|
}
|
|
31
30
|
else {
|
|
@@ -18,9 +18,11 @@ exports.default = (config, testName) => {
|
|
|
18
18
|
entrypoints = Object.keys(config.node.tests);
|
|
19
19
|
}
|
|
20
20
|
else {
|
|
21
|
+
console.log(config);
|
|
22
|
+
throw "config.node.tests should exist";
|
|
21
23
|
// 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]}`);
|
|
24
|
+
// entrypoints = ["./example/Calculator.test.ts"];
|
|
25
|
+
// console.warn(`No node.tests found in config, using default entry point: ${entrypoints[0]}`);
|
|
24
26
|
}
|
|
25
27
|
const { inputFilesPluginFactory, register } = (0, inputFilesPlugin_js_1.default)("node", testName);
|
|
26
28
|
return Object.assign(Object.assign({}, (0, index_js_1.default)(config)), { outdir: absoluteBundlesDir(config), outbase: ".", metafile: true, supported: {
|
|
@@ -41,6 +41,7 @@ const esbuild_2 = __importDefault(require("./esbuild"));
|
|
|
41
41
|
const common_1 = require("../common");
|
|
42
42
|
const configFilePath = process.argv[2];
|
|
43
43
|
const testName = process.argv[3] || "allTests";
|
|
44
|
+
console.log(`[NODE BUILDER] configFilePath: ${configFilePath}`);
|
|
44
45
|
// run esbuild in watch mode using esbuildConfigs. Write to fs the bundle and metafile
|
|
45
46
|
async function startBundling(config) {
|
|
46
47
|
console.log(`[NODE BUILDER] is now bundling: ${testName}`);
|