Skip to content

Commit 27f8684

Browse files
committed
fix: resolve parallel reporter execution issue by using separate sync files
- Fixed issue where multiple reporters were using the same sync file during parallel execution. - Ensured each reporter now uses its own dedicated file for state synchronization.
1 parent 846129c commit 27f8684

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

qase-javascript-commons/changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2+
3+
## What's new
4+
5+
Resolved an issue with parallel execution of multiple reporters using a shared sync file. Each reporter now uses its own
6+
dedicated file for state synchronization.
7+
18
29

310
## What's new

qase-javascript-commons/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "qase-javascript-commons",
3-
"version": "2.2.9",
3+
"version": "2.2.10",
44
"description": "Qase JS Reporters",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

qase-javascript-commons/src/state/state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface StateModel {
99
}
1010

1111
export class StateManager {
12-
static statePath = path.resolve(__dirname, 'reporterState.json');
12+
static statePath = path.resolve(process.cwd(), 'reporterState.json');
1313

1414
static getState(): StateModel {
1515
let state: StateModel = {

0 commit comments

Comments
 (0)