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.
@@ -19,9 +19,8 @@ export const nodeDockerComposeFile = (config, container_name, fpath) => {
19
19
  const externalTests = true;
20
20
  export const nodeBuildCommand = (fpath) => {
21
21
  if (externalTests) {
22
- console.log("external tests");
23
- // return `yarn tsx /workspace/node_modules/testeranto/src/server/runtimes/node/node.ts /workspace/${fpath}`;
24
- return `ls node_modules/testeranto/src`;
22
+ console.log("external tests", process.cwd());
23
+ return `yarn tsx node_modules/testeranto/src/server/runtimes/node/node.ts ${fpath}`;
25
24
  // return ["sh", "-c", "cd /workspace && javac -cp \".:lib/*\" src/server/runtimes/java/main.java && java -cp \"src/server/runtimes/java:.\" main"]
26
25
  }
27
26
  else {
@@ -7,15 +7,17 @@ const absoluteBundlesDir = (c) => {
7
7
  };
8
8
  export default (config, testName) => {
9
9
  var _a, _b, _c;
10
+ console.log(config);
10
11
  // Get entry points from config, or use a default
11
12
  let entrypoints = [];
12
13
  if ((_a = config.node) === null || _a === void 0 ? void 0 : _a.tests) {
13
14
  entrypoints = Object.keys(config.node.tests);
14
15
  }
15
16
  else {
17
+ throw "config.node.tests should exist";
16
18
  // Fallback to a reasonable default
17
- entrypoints = ["./example/Calculator.test.ts"];
18
- console.warn(`No node.tests found in config, using default entry point: ${entrypoints[0]}`);
19
+ // entrypoints = ["./example/Calculator.test.ts"];
20
+ // console.warn(`No node.tests found in config, using default entry point: ${entrypoints[0]}`);
19
21
  }
20
22
  const { inputFilesPluginFactory, register } = inputFilesPlugin("node", testName);
21
23
  return Object.assign(Object.assign({}, baseEsBuildConfig(config)), { outdir: absoluteBundlesDir(config), outbase: ".", metafile: true, supported: {
@@ -3,6 +3,7 @@ import nodeConfiger from "./esbuild";
3
3
  import { processMetafile } from "../common";
4
4
  const configFilePath = process.argv[2];
5
5
  const testName = process.argv[3] || "allTests";
6
+ console.log(`[NODE BUILDER] configFilePath: ${configFilePath}`);
6
7
  // run esbuild in watch mode using esbuildConfigs. Write to fs the bundle and metafile
7
8
  async function startBundling(config) {
8
9
  console.log(`[NODE BUILDER] is now bundling: ${testName}`);