From 9b155cc8f24955bc4d63d4bd588193610b240f99 Mon Sep 17 00:00:00 2001 From: Vanilagy <1696106+Vanilagy@users.noreply.github.com> Date: Thu, 6 Aug 2026 13:54:10 +0200 Subject: [PATCH] Fix macOS webdriver io cache location --- vitest.config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vitest.config.ts b/vitest.config.ts index 5963bbb..2288209 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -42,6 +42,14 @@ export default defineConfig({ provider: 'webdriverio', instances: [{ browser: 'chrome', + capabilities: { + // macOS periodically purges files (but not folders) from the default os.tmpdir() cache, + // leaving a gutted install that bricks the chromedriver setup - so keep the cache + // somewhere persistent + 'wdio:chromedriverOptions': { + cacheDir: path.resolve(__dirname, 'node_modules/.cache/webdriver'), + }, + }, }], headless: false, // A bunch of features need the head screenshotFailures: false,