From 22d3ce82b7147bbc5aa03df17b3006df474a688d Mon Sep 17 00:00:00 2001 From: Arjun Attam Date: Mon, 4 Nov 2024 16:29:50 +0530 Subject: [PATCH] fix: worker info store needs recursive mkdir (#224) --- .changeset/lemon-lions-run.md | 5 +++++ src/fixture/workerInfo.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/lemon-lions-run.md diff --git a/.changeset/lemon-lions-run.md b/.changeset/lemon-lions-run.md new file mode 100644 index 0000000..52856d6 --- /dev/null +++ b/.changeset/lemon-lions-run.md @@ -0,0 +1,5 @@ +--- +"appwright": patch +--- + +fix: worker info store needs recursive mkdir diff --git a/src/fixture/workerInfo.ts b/src/fixture/workerInfo.ts index 1514205..b3577bd 100644 --- a/src/fixture/workerInfo.ts +++ b/src/fixture/workerInfo.ts @@ -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