testeranto 0.219.6 → 0.219.8

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.6",
5
+ "version": "0.219.8",
6
6
  "engines": {
7
7
  "node": ">=20.19.0",
8
8
  "vscode": "^1.60.0"
@@ -29,7 +29,9 @@ export const nodeBuildCommand = (fpath: string) => {
29
29
 
30
30
  if (externalTests) {
31
31
  console.log("external tests", process.cwd())
32
+ // return `cat node_modules/testeranto/src/server/runtimes/node/esbuild.ts`
32
33
  return `yarn tsx node_modules/testeranto/src/server/runtimes/node/node.ts ${fpath}`;
34
+ // return `cat node_modules/testeranto/src/server/runtimes/node/node.ts`
33
35
  // return ["sh", "-c", "cd /workspace && javac -cp \".:lib/*\" src/server/runtimes/java/main.java && java -cp \"src/server/runtimes/java:.\" main"]
34
36
  } else {
35
37
  console.log("not external tests")
@@ -10,19 +10,19 @@ const absoluteBundlesDir = (c: ITestconfig): string => {
10
10
  };
11
11
 
12
12
  export default (
13
- config: ITestconfig,
13
+ projectConfig: ITestconfig,
14
14
  testName: string
15
15
  ): BuildOptions => {
16
16
 
17
- console.log(config)
17
+ console.log("mark77", projectConfig)
18
18
 
19
19
  // Get entry points from config, or use a default
20
20
  let entrypoints: string[] = [];
21
- if (config.node?.tests) {
22
- entrypoints = Object.keys(config.node.tests);
21
+ if (projectConfig.node?.tests) {
22
+ entrypoints = Object.keys(projectConfig.node.tests);
23
23
  } else {
24
-
25
- throw "config.node.tests should exist"
24
+ // console.log(projectConfig)
25
+ throw "projectConfig.node.tests should exist"
26
26
  // Fallback to a reasonable default
27
27
  // entrypoints = ["./example/Calculator.test.ts"];
28
28
  // console.warn(`No node.tests found in config, using default entry point: ${entrypoints[0]}`);
@@ -34,9 +34,9 @@ export default (
34
34
  );
35
35
 
36
36
  return {
37
- ...baseEsBuildConfig(config),
37
+ ...baseEsBuildConfig(projectConfig),
38
38
 
39
- outdir: absoluteBundlesDir(config),
39
+ outdir: absoluteBundlesDir(projectConfig),
40
40
  outbase: ".", // Preserve directory structure relative to outdir
41
41
  metafile: true,
42
42
  supported: {
@@ -61,7 +61,7 @@ export default (
61
61
  featuresPlugin,
62
62
  inputFilesPluginFactory,
63
63
  rebuildPlugin("node"),
64
- ...(config.node?.plugins?.map((p) => p(register, entrypoints)) || []),
64
+ ...(projectConfig.node?.plugins?.map((p) => p(register, entrypoints)) || []),
65
65
  ],
66
66
  };
67
67
  };
@@ -6,10 +6,10 @@ import {
6
6
  processMetafile
7
7
  } from "../common";
8
8
 
9
- const configFilePath = process.argv[2];
9
+ const nodeConfig = process.argv[2];
10
10
  const testName = process.argv[3] || "allTests";
11
11
 
12
- console.log(`[NODE BUILDER] configFilePath: ${configFilePath}`);
12
+ console.log(`[NODE BUILDER] nodeConfig: ${nodeConfig}`);
13
13
 
14
14
  // run esbuild in watch mode using esbuildConfigs. Write to fs the bundle and metafile
15
15
  async function startBundling(
@@ -33,10 +33,10 @@ async function startBundling(
33
33
 
34
34
  async function main() {
35
35
  try {
36
- const config = (await import(configFilePath)).default;
36
+ const config = (await import(nodeConfig)).default;
37
37
  await startBundling(config);
38
38
  } catch (error) {
39
- console.error("NODE BUILDER: Error importing config:", configFilePath, error);
39
+ console.error("NODE BUILDER: Error importing config:", nodeConfig, error);
40
40
  console.error(error);
41
41
  process.exit(1);
42
42
  }