vitest-dev / vitest-dev/vitest

Split tests in the monorepo

Open
#9,434 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

contributing p1-chore
Dominant language
TypeScript
Stars
17.1k
Forks
2k
Avg merge
1d 22h
Merged PRs (30d)
94

Description

Clear and concise description of the problem

It is not intuitive to write new tests in the Vitest monorepo.

Suggested solution

Continue #9367

Move all integration tests into test/cli and rename to integration:

Rename core to unit. In the end, we will have:

  • browser
  • integration
  • unit
  • ui for e2e tests
Alternative

No response

Additional context

No response

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 by inspecting the test/cli layout and the existing core test directory, then review the integration groups listed in the issue: snapshots, config, typescript, workspaces, coverage-test, and related tests. Done means the integration tests are under test/cli/integration, core is renamed to unit, and the final categories are browser, integration, unit, and ui.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing-qa, tooling
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.