testeranto 0.219.8 → 0.219.9

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.
@@ -25,7 +25,7 @@ const nodeBuildCommand = (fpath) => {
25
25
  if (externalTests) {
26
26
  console.log("external tests", process.cwd());
27
27
  // return `cat node_modules/testeranto/src/server/runtimes/node/esbuild.ts`
28
- return `yarn tsx node_modules/testeranto/src/server/runtimes/node/node.ts ${fpath}`;
28
+ return `yarn tsx node_modules/testeranto/src/server/runtimes/node/node.ts ${fpath} testeranto/testeranto.yml`;
29
29
  // return `cat node_modules/testeranto/src/server/runtimes/node/node.ts`
30
30
  // return ["sh", "-c", "cd /workspace && javac -cp \".:lib/*\" src/server/runtimes/java/main.java && java -cp \"src/server/runtimes/java:.\" main"]
31
31
  }
@@ -39,9 +39,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  const esbuild_1 = __importDefault(require("esbuild"));
40
40
  const esbuild_2 = __importDefault(require("./esbuild"));
41
41
  const common_1 = require("../common");
42
- const nodeConfig = process.argv[2];
42
+ const nodeConfigPath = process.argv[2];
43
43
  const testName = process.argv[3] || "allTests";
44
- console.log(`[NODE BUILDER] nodeConfig: ${nodeConfig}`);
44
+ console.log(`[NODE BUILDER] nodeConfig: ${nodeConfigPath}`);
45
45
  // run esbuild in watch mode using esbuildConfigs. Write to fs the bundle and metafile
46
46
  async function startBundling(config) {
47
47
  console.log(`[NODE BUILDER] is now bundling: ${testName}`);
@@ -58,11 +58,11 @@ async function startBundling(config) {
58
58
  }
59
59
  async function main() {
60
60
  try {
61
- const config = (await Promise.resolve(`${nodeConfig}`).then(s => __importStar(require(s)))).default;
61
+ const config = (await Promise.resolve(`${nodeConfigPath}`).then(s => __importStar(require(s)))).default;
62
62
  await startBundling(config);
63
63
  }
64
64
  catch (error) {
65
- console.error("NODE BUILDER: Error importing config:", nodeConfig, error);
65
+ console.error("NODE BUILDER: Error importing config:", nodeConfigPath, error);
66
66
  console.error(error);
67
67
  process.exit(1);
68
68
  }