Skip to content

Commit

Permalink
fix: throw an error when running "vitest typecheck"
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Nov 4, 2023
1 parent 4c957a2 commit 7913a00
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 7913a00

Please sign in to comment.