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