这是indexloc提供的服务,不要输入任何密码
Skip to content

Docs: Vitest docs are both incorrect and incomplete #8790

@AndreaPontrandolfo

Description

@AndreaPontrandolfo

What is the improvement or update you wish to see?

Fix docs around vitest CLI and improve docs around caching and file storing.

Is there any context that might help us understand?

In the Turborepo x Vitest there are these commands:

{
  "scripts": {
    "test": "vitest",
    "test:watch": "vitest --watch"
  }
}

Which are wrong.
vitest does watch the files, while vitest run run the tests and then stop (thus being suitable for CI). Reference.

Am i misunderstanding something?

Also, vitest has docs for caching and docs for storing output files and coverage files.

it would be nice if Turborepo mentioned and gave guidance about these docs, here.

Does the docs page already exist? Please link to it.

https://turbo.build/repo/docs/guides/tools/vitest

Metadata

Metadata

Assignees

Labels

area: docsImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions