vitest-dev / vitest-dev/vitest

Option to disable "Testing types with tsc and vue-tsc is an experimental feature." logs

Open
#9,823 5 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement: pending triage p2-nice-to-have
Dominant language
TypeScript
Stars
17.1k
Forks
2k
Avg merge
1d 22h
Merged PRs (30d)
94

Description

Clear and concise description of the problem

Right now, when you run with typecheck enabled, this warning is emitted:

https://github.com/vitest-dev/vitest/blob/b0b83e21424a9e9330c07b5f1d5ed82e01aa3f29/packages/vitest/src/node/config/resolveConfig.ts#L791-L795

Testing types with tsc and vue-tsc is an experimental feature.
Breaking changes might not follow SemVer, please pin Vitest's version when using it.

That's good to know when setting up the typecheck feature. But if a project is already using the feature, it can become kind of a lot. Especially in monorepos where multiple instances of Vitest get run.

Suggested solution

Could we have an option to say "yes, I know this is experimental, don't log"? Or at least only log once per system, determined by writing to a cache?

Alternative

...or stabilize the typecheck feature?

Additional context

Related:

Validations

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at packages/vitest/src/node/config/resolveConfig.ts around lines 791-795 and inspect how the typecheck warning is emitted. Define an option that suppresses the experimental-feature message while preserving the current default behavior, then add or update coverage for the logging behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
57/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.