testeranto 0.165.0 → 0.167.0

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.
Files changed (51) hide show
  1. package/bundle.js +1 -1
  2. package/dist/common/src/Pure.js +2 -2
  3. package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.mock.js +1 -1
  4. package/dist/common/src/lib/basebuilder.js +9 -7
  5. package/dist/common/src/lib/core.test/MockCore.js +17 -15
  6. package/dist/common/tsconfig.common.tsbuildinfo +1 -1
  7. package/dist/module/src/Pure.js +2 -2
  8. package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.mock.js +1 -1
  9. package/dist/module/src/lib/basebuilder.js +9 -7
  10. package/dist/module/src/lib/core.test/MockCore.js +17 -15
  11. package/dist/module/tsconfig.module.tsbuildinfo +1 -1
  12. package/dist/prebuild/App.css +11669 -0
  13. package/dist/tsconfig.tsbuildinfo +1 -0
  14. package/dist/types/src/lib/index.d.ts +0 -1
  15. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  16. package/package.json +1 -1
  17. package/src/Pure.ts +2 -2
  18. package/src/lib/baseBuilder.test/baseBuilder.test.mock.ts +1 -1
  19. package/src/lib/basebuilder.ts +9 -9
  20. package/src/lib/core.test/MockCore.ts +26 -19
  21. package/src/lib/index.ts +1 -1
  22. package/testeranto/App.css +1 -20
  23. package/testeranto/bundles/node/allTests/chunk-H2IBV7SY.mjs +113 -0
  24. package/testeranto/bundles/node/allTests/chunk-IDCUSTSM.mjs +669 -0
  25. package/testeranto/bundles/node/allTests/chunk-ZHOULXPN.mjs +252 -0
  26. package/testeranto/bundles/node/allTests/metafile.json +28 -28
  27. package/testeranto/bundles/node/allTests/src/lib/BaseSuite.test/node.test.mjs +3 -3
  28. package/testeranto/bundles/node/allTests/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +3 -3
  29. package/testeranto/bundles/node/allTests/src/lib/classBuilder.test/classBuilder.test.mjs +3 -3
  30. package/testeranto/bundles/node/allTests/src/lib/core.test/core.test.mjs +11 -8
  31. package/testeranto/bundles/node/allTests/src/lib/pmProxy.test/index.mjs +2 -2
  32. package/testeranto/bundles/pure/allTests/chunk-4ULDTZFU.mjs +666 -0
  33. package/testeranto/bundles/pure/allTests/chunk-5SBJWHSZ.mjs +200 -0
  34. package/testeranto/bundles/pure/allTests/metafile.json +18 -18
  35. package/testeranto/bundles/pure/allTests/src/Pure.test.mjs +2 -2
  36. package/testeranto/bundles/pure/allTests/src/lib/BaseSuite.test/pure.test.mjs +2 -2
  37. package/testeranto/bundles/pure/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +2 -2
  38. package/testeranto/bundles/web/allTests/chunk-46E6YGGN.mjs +847 -0
  39. package/testeranto/bundles/web/allTests/metafile.json +10 -10
  40. package/testeranto/bundles/web/allTests/src/lib/BaseSuite.test/web.test.mjs +1 -1
  41. package/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web.mjs +2 -2
  42. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/logs.txt +0 -0
  43. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/logs.txt +0 -0
  44. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/logs.txt +0 -0
  45. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/logs.txt +0 -0
  46. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/logs.txt +0 -0
  47. package/testeranto/reports/allTests/src/lib/core.test/core.test/node/lint_errors.txt +0 -12
  48. package/testeranto/reports/allTests/src/lib/core.test/core.test/node/type_errors.txt +2 -5
  49. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/logs.txt +0 -0
  50. package/testeranto/reports/allTests/summary.json +2 -2
  51. package/tsc.log +236 -234
@@ -20,7 +20,7 @@ export class PureTesteranto extends Testeranto {
20
20
  failed: true,
21
21
  fails: 1,
22
22
  artifacts: [],
23
- logPromise: Promise.resolve(),
23
+ // logPromise: Promise.resolve(),
24
24
  features: [],
25
25
  };
26
26
  }
@@ -36,7 +36,7 @@ export class PureTesteranto extends Testeranto {
36
36
  failed: true,
37
37
  fails: 1,
38
38
  artifacts: [],
39
- logPromise: Promise.resolve(),
39
+ // logPromise: Promise.resolve(),
40
40
  features: [],
41
41
  };
42
42
  }
@@ -24,7 +24,7 @@ export class MockBaseBuilder extends BaseBuilder {
24
24
  failed: false,
25
25
  fails: 0,
26
26
  artifacts: [],
27
- logPromise: Promise.resolve(),
27
+ // logPromise: Promise.resolve(),
28
28
  features: [],
29
29
  });
30
30
  }
@@ -28,17 +28,19 @@ export class BaseBuilder {
28
28
  },
29
29
  runner,
30
30
  receiveTestResourceConfig: async function (puppetMaster) {
31
- const logFilePath = "logs.txt";
32
- const access = await puppetMaster.createWriteStream(logFilePath);
31
+ // const logFilePath = "logs.txt";
32
+ // const access: number = await puppetMaster.createWriteStream(
33
+ // logFilePath
34
+ // );
33
35
  // deprecated?
34
36
  const tLog = async (...l) => {
35
37
  //
36
38
  };
37
39
  const suiteDone = await runner(puppetMaster, tLog);
38
- const logPromise = new Promise(async (res) => {
39
- await puppetMaster.end(access);
40
- res(true);
41
- });
40
+ // const logPromise = new Promise(async (res) => {
41
+ // await puppetMaster.end(access);
42
+ // res(true);
43
+ // });
42
44
  const fails = suiteDone.fails;
43
45
  await puppetMaster.writeFileSync(`bdd_errors.txt`, fails.toString());
44
46
  await puppetMaster.writeFileSync(`tests.json`, JSON.stringify(this.toObj(), null, 2));
@@ -46,7 +48,7 @@ export class BaseBuilder {
46
48
  failed: fails > 0,
47
49
  fails,
48
50
  artifacts: this.artifacts || [],
49
- logPromise,
51
+ // logPromise,
50
52
  features: suiteDone.features(),
51
53
  };
52
54
  },
@@ -1,32 +1,34 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
3
  import TesterantoCore from "../core";
2
4
  /**
3
5
  * Concrete implementation of Testeranto for testing purposes
4
6
  */
5
7
  export class MockCore extends TesterantoCore {
6
8
  constructor(input, testSpecification, testImplementation, testResourceRequirement = { ports: [] }, testAdapter, uberCatcher = (cb) => cb()) {
7
- console.log('[DEBUG] MockCore constructor starting...');
9
+ console.log("[DEBUG] MockCore constructor starting...");
8
10
  if (!testImplementation) {
9
- throw new Error('testImplementation is required');
11
+ throw new Error("testImplementation is required");
10
12
  }
11
13
  if (!testSpecification) {
12
- console.warn('[WARN] testSpecification is null/undefined - tests may fail');
14
+ console.warn("[WARN] testSpecification is null/undefined - tests may fail");
13
15
  }
14
- console.log('[DEBUG] MockCore constructor called with:');
15
- console.log('- input:', JSON.stringify(input, null, 2));
16
- console.log('- testSpecification keys:', Object.keys(testSpecification));
17
- console.log('- testImplementation keys:', Object.keys(testImplementation));
18
- console.log('- testResourceRequirement:', JSON.stringify(testResourceRequirement));
19
- console.log('- testAdapter keys:', Object.keys(testAdapter));
16
+ console.log("[DEBUG] MockCore constructor called with:");
17
+ console.log("- input:", JSON.stringify(input, null, 2));
18
+ console.log("- testSpecification keys:", Object.keys(testSpecification));
19
+ console.log("- testImplementation keys:", Object.keys(testImplementation));
20
+ console.log("- testResourceRequirement:", JSON.stringify(testResourceRequirement));
21
+ console.log("- testAdapter keys:", Object.keys(testAdapter));
20
22
  // Validate required implementation methods
21
- const requiredMethods = ['suites', 'givens', 'whens', 'thens'];
22
- requiredMethods.forEach(method => {
23
+ const requiredMethods = ["suites", "givens", "whens", "thens"];
24
+ requiredMethods.forEach((method) => {
23
25
  if (!testImplementation[method]) {
24
26
  throw new Error(`Missing required implementation method: ${method}`);
25
27
  }
26
28
  });
27
- console.log('[DEBUG] Validation passed, calling super...');
28
- this.testResourceRequirement = testResourceRequirement;
29
- this.testAdapter = testAdapter;
29
+ console.log("[DEBUG] Validation passed, calling super...");
30
+ // this.testResourceRequirement = testResourceRequirement;
31
+ // this.testAdapter = testAdapter;
30
32
  super(input, testSpecification, testImplementation, testResourceRequirement, testAdapter, uberCatcher);
31
33
  this.specs = [];
32
34
  this.testJobs = [];
@@ -37,7 +39,7 @@ export class MockCore extends TesterantoCore {
37
39
  failed: false,
38
40
  fails: 0,
39
41
  artifacts: [],
40
- logPromise: Promise.resolve(),
42
+ // logPromise: Promise.resolve(),
41
43
  features: [],
42
44
  };
43
45
  }