Skip to content

Commit

Permalink
feat: check related against forceRerunTriggers
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotwestlake committed Jul 4, 2022
1 parent 3e4f3be commit f5b436c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/vitest/src/node/core.ts
Expand Up @@ -189,6 +189,10 @@ export class Vitest {
if (!related)
return tests

const forceRerunTriggers = this.config.forceRerunTriggers
if (forceRerunTriggers.length && mm(related, forceRerunTriggers))
return tests

// don't run anything if no related sources are found
if (!related.length)
return []
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f5b436c

Please sign in to comment.