Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: check related against forceRerunTriggers #1595

Merged
merged 13 commits into from Jul 5, 2022
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.