Skip to content

Commit

Permalink
fix(cli): do not enable watch if it wasn't enabled before
Browse files Browse the repository at this point in the history
  • Loading branch information
DerYeger committed Feb 9, 2022
1 parent 263ea7c commit ebd6046
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/vitest/src/node/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ cli

cli
.command('run [...filters]')
.action(runInRunMode)
.action((cliFilters: string[], argv: UserConfig) => run(cliFilters, { ...argv, run: true, watch: false }))

cli
.command('related [...filters]')
Expand All @@ -55,10 +55,6 @@ cli

cli.parse()

async function runInRunMode(cliFilters: string[], argv: UserConfig) {
await run(cliFilters, { ...argv, run: true })
}

async function runRelated(relatedFiles: string[] | string, argv: UserConfig) {
argv.related = relatedFiles
argv.passWithNoTests ??= true
Expand Down

0 comments on commit ebd6046

Please sign in to comment.