Skip to content

Commit

Permalink
chore: process all test files if there are no related changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Jul 30, 2023
1 parent 49162b9 commit 6465918
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vitest/src/node/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ export class Vitest {
return specs

// don't run anything if no related sources are found
if (!related.length)
// if we are in watch mode, we want to process all tests
if (!this.config.watch && !related.length)
return []

const testGraphs = await Promise.all(
Expand Down

0 comments on commit 6465918

Please sign in to comment.