Skip to content

Commit

Permalink
chore: fix test run in dev (#11214)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Dec 6, 2022
1 parent b27eba3 commit c747a3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/node/watch.ts
@@ -1,4 +1,4 @@
import { escapePath } from 'fast-glob'
import glob from 'fast-glob'
import type { WatchOptions } from 'dep-types/chokidar'
import type { ResolvedConfig } from '.'

Expand All @@ -13,7 +13,7 @@ export function resolveChokidarOptions(
'**/.git/**',
'**/node_modules/**',
'**/test-results/**', // Playwright
escapePath(config.cacheDir) + '/**',
glob.escapePath(config.cacheDir) + '/**',
...(Array.isArray(ignored) ? ignored : [ignored]),
],
ignoreInitial: true,
Expand Down

0 comments on commit c747a3f

Please sign in to comment.