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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "testeranto",
3
3
  "displayName": "Testeranto",
4
4
  "description": "the Dockerized, AI powered, BDD test framework for polyglot projects",
5
- "version": "0.219.4",
5
+ "version": "0.219.6",
6
6
  "engines": {
7
7
  "node": ">=20.19.0",
8
8
  "vscode": "^1.60.0"
@@ -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
- // return `yarn tsx /workspace/node_modules/testeranto/src/server/runtimes/node/node.ts /workspace/${fpath}`;
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