Skip to content

Commit

Permalink
fix: ignore Playwright test results directory (#8778)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Jun 30, 2022
1 parent 3af6a1b commit 314c09c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/node/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 314c09c

Please sign in to comment.