Skip to content

Commit

Permalink
fix: clear pattern when rerun all tests (#1834)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickChen928 committed Aug 11, 2022
1 parent 10232f3 commit e0dbc30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/stdin.ts
Expand Up @@ -41,7 +41,7 @@ export function registerConsoleShortcuts(ctx: Vitest) {
return ctx.updateSnapshot()
// rerun all tests
if (name === 'a' || name === 'return')
return ctx.rerunFiles(undefined)
return ctx.changeNamePattern('')
// rerun only failed tests
if (name === 'f')
return ctx.rerunFailed()
Expand Down

0 comments on commit e0dbc30

Please sign in to comment.