Skip to content

Run vitest typecheck together with normal test in one watch #2299

@Shinigami92

Description

@Shinigami92

Clear and concise description of the problem

  • As a user
  • I want to run vitest typecheck and vitest in just one command (e.g. just vitest or vitest --with-typecheck)
  • so that I don't need to run e.g. two separate terminal windows in my VSCode editor in parallel to run all tests while I'm working on my project

Suggested solution

Run typecheck by default alongside the normal running tests by default.
(I use *.test-d.ts as recommended in the docs)

Alternative

Let us use a flag for running with typecheck via --with-typecheck (alternative wording welcome)

Additional context

No response

Validations

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestp3-significantHigh priority enhancement (priority)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions