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.
@@ -18,8 +18,8 @@ var esbuild_default = (config, testName2) => {
18
18
  if (config.node?.tests) {
19
19
  entrypoints = Object.keys(config.node.tests);
20
20
  } else {
21
- entrypoints = ["./example/Calculator.test.ts"];
22
- console.warn(`No node.tests found in config, using default entry point: ${entrypoints[0]}`);
21
+ console.log(config);
22
+ throw "config.node.tests should exist";
23
23
  }
24
24
  const { inputFilesPluginFactory, register } = inputFilesPlugin_default(
25
25
  "node",
@@ -56,6 +56,7 @@ var esbuild_default = (config, testName2) => {
56
56
  // src/server/runtimes/node/node.ts
57
57
  var configFilePath = process.argv[2];
58
58
  var testName = process.argv[3] || "allTests";
59
+ console.log(`[NODE BUILDER] configFilePath: ${configFilePath}`);
59
60
  async function startBundling(config) {
60
61
  console.log(`[NODE BUILDER] is now bundling: ${testName}`);
61
62
  const n = esbuild_default(config, testName);
@@ -100,8 +100,8 @@ var nodeDockerComposeFile = (config, container_name, fpath) => {
100
100
  var externalTests = true;
101
101
  var nodeBuildCommand = (fpath) => {
102
102
  if (externalTests) {
103
- console.log("external tests");
104
- return `ls node_modules/testeranto/src`;
103
+ console.log("external tests", process.cwd());
104
+ return `yarn tsx node_modules/testeranto/src/server/runtimes/node/node.ts ${fpath}`;
105
105
  } else {
106
106
  console.log("not external tests");
107
107
  return `yarn tsx src/server/runtimes/node/node.ts /workspace/${fpath}`;