Skip to content

Commit

Permalink
fix: worker info store needs recursive mkdir (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunattam authored Nov 4, 2024
1 parent 01bb396 commit 22d3ce8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lemon-lions-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"appwright": patch
---

fix: worker info store needs recursive mkdir
2 changes: 1 addition & 1 deletion src/fixture/workerInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class WorkerInfoStore {

async saveWorkerToDisk(idx: number, contents: WorkerInfo) {
if (!fs.existsSync(this.basePath)) {
fs.mkdirSync(this.basePath);
fs.mkdirSync(this.basePath, { recursive: true });
}
// TODO: can we make this file path unique for a session?
// will avoidd ios/android running into issues when running concurrently on local
Expand Down

0 comments on commit 22d3ce8

Please sign in to comment.