qase-javascript-commons 2.5.6 → 2.5.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/changelog.md CHANGED
@@ -1,3 +1,15 @@
1
+ # qase-javascript-commons@2.5.8
2
+
3
+ ## Bug fixes
4
+
5
+ - Fixed stale reporter state in long-lived Node.js processes (VS Code Playwright extension, Jest watch mode). The singleton `QaseReporter` now resets per-run state (`runId`, `firstIndex`, `results`, `disabled`, `useFallback`) in `startTestRun()`, so subsequent test runs within the same process work correctly.
6
+
7
+ # qase-javascript-commons@2.5.7
8
+
9
+ ## Bug fixes
10
+
11
+ - Moved profiler modules to a separate sub-path export (`qase-javascript-commons/profilers`) to fix Webpack `UnhandledSchemeError` when using Cypress. The main entry point no longer pulls in `node:` URI imports (`async_hooks`, `http`, `https`, `diagnostics_channel`).
12
+
1
13
  # qase-javascript-commons@2.5.6
2
14
 
3
15
  ## What's new
package/dist/index.d.ts CHANGED
@@ -6,7 +6,6 @@ export * from './models';
6
6
  export * from './options';
7
7
  export * from './reporters';
8
8
  export * from './writer';
9
- export * from './profilers';
10
9
  export * from './utils/get-package-version';
11
10
  export * from './utils/mimeTypes';
12
11
  export * from './utils/project-mapping-utils';
package/dist/index.js CHANGED
@@ -22,7 +22,6 @@ __exportStar(require("./models"), exports);
22
22
  __exportStar(require("./options"), exports);
23
23
  __exportStar(require("./reporters"), exports);
24
24
  __exportStar(require("./writer"), exports);
25
- __exportStar(require("./profilers"), exports);
26
25
  __exportStar(require("./utils/get-package-version"), exports);
27
26
  __exportStar(require("./utils/mimeTypes"), exports);
28
27
  __exportStar(require("./utils/project-mapping-utils"), exports);
package/dist/qase.js CHANGED
@@ -242,6 +242,8 @@ class QaseReporter {
242
242
  if (this.withState) {
243
243
  state_1.StateManager.clearState();
244
244
  }
245
+ this.disabled = false;
246
+ this.useFallback = false;
245
247
  if (!this.disabled) {
246
248
  this.logger.logDebug('Starting test run');
247
249
  try {
@@ -72,6 +72,13 @@ class TestOpsMultiReporter extends abstract_reporter_1.AbstractReporter {
72
72
  return opts;
73
73
  }
74
74
  async startTestRun() {
75
+ this.runIds.clear();
76
+ this.isTestRunReady = false;
77
+ this.results = [];
78
+ for (const code of this.projectCodes) {
79
+ this.projectQueues.set(code, []);
80
+ this.firstIndexByProject.set(code, 0);
81
+ }
75
82
  await this.checkOrCreateTestRuns();
76
83
  }
77
84
  async addTestResult(result) {
@@ -47,6 +47,10 @@ class TestOpsReporter extends abstract_reporter_1.AbstractReporter {
47
47
  * @returns {Promise<void>}
48
48
  */
49
49
  async startTestRun() {
50
+ this.runId = undefined;
51
+ this.isTestRunReady = false;
52
+ this.firstIndex = 0;
53
+ this.results = [];
50
54
  await this.checkOrCreateTestRun();
51
55
  }
52
56
  /**
package/package.json CHANGED
@@ -1,9 +1,25 @@
1
1
  {
2
2
  "name": "qase-javascript-commons",
3
- "version": "2.5.6",
3
+ "version": "2.5.8",
4
4
  "description": "Qase JS Reporters",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/index.js"
11
+ },
12
+ "./profilers": {
13
+ "types": "./dist/profilers/index.d.ts",
14
+ "default": "./dist/profilers/index.js"
15
+ },
16
+ "./package.json": "./package.json"
17
+ },
18
+ "typesVersions": {
19
+ "*": {
20
+ "profilers": ["./dist/profilers/index.d.ts"]
21
+ }
22
+ },
7
23
  "homepage": "https://github.com/qase-tms/qase-javascript",
8
24
  "bugs": {
9
25
  "url": "https://github.com/qase-tms/qase-javascript/issues"
@@ -46,7 +62,6 @@
46
62
  "@types/lodash.mergewith": "^4.6.9",
47
63
  "@types/mime-types": "^2.1.4",
48
64
  "@types/minimatch": "^6.0.0",
49
- "@types/node": "^20.19.25",
50
65
  "@types/uuid": "^9.0.8",
51
66
  "axios": "^1.13.5",
52
67
  "jest": "^29.7.0",