Skip to content

Commit

Permalink
fix: throw an error when running "vitest typecheck" (#4439)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va authored Nov 4, 2023
1 parent d03a2a2 commit 7f50229
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/vitest/src/node/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ cli
.command('bench [...filters]')
.action(benchmark)

// TODO: remove in Vitest 2.0
cli
.command('typecheck [...filters]')
.action(() => {
throw new Error(`Running typecheck via "typecheck" command is removed. Please use "--typecheck" to run your regular tests alongside typechecking, or "--typecheck.only" to run only typecheck tests.`)
})

cli
.command('[...filters]')
.action((filters, options) => start('test', filters, options))
Expand Down

0 comments on commit 7f50229

Please sign in to comment.