turbo icon indicating copy to clipboard operation
turbo copied to clipboard

Docs: Vitest docs are both incorrect and incomplete

Open AndreaPontrandolfo opened this issue 7 months ago • 1 comments

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

AndreaPontrandolfo avatar Jul 18 '24 22:07 AndreaPontrandolfo