From 314c09c16bc0747babfd5eef01801928104951d5 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Thu, 30 Jun 2022 15:26:01 -0700 Subject: [PATCH] fix: ignore Playwright test results directory (#8778) --- packages/vite/src/node/server/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/vite/src/node/server/index.ts b/packages/vite/src/node/server/index.ts index 24a277fa136c08..055e49d89a19e3 100644 --- a/packages/vite/src/node/server/index.ts +++ b/packages/vite/src/node/server/index.ts @@ -291,8 +291,9 @@ export async function createServer( const { ignored = [], ...watchOptions } = serverConfig.watch || {} const watcher = chokidar.watch(path.resolve(root), { ignored: [ - '**/node_modules/**', '**/.git/**', + '**/node_modules/**', + '**/test-results/**', // Playwright ...(Array.isArray(ignored) ? ignored : [ignored]) ], ignoreInitial: true,