Files
7244d5c58c docs: upgrades for Vitest doc and add with-vitest example (#10063)
### Description

Some iterations for our Vitest documentation:
- Made it clearer that this document is for interactions of Vitest and
Turborepo, not just "Vitest in monorepos"
- Fixed commands that were wrong
- A new `with-vitest` example
- A section on merged coverage reports
- Other minor wording fixes

Closes https://github.com/vercel/turborepo/issues/4517

### Reviewer note

The example does exactly one thing that I don't love, in that it doesn't
have dependencies between `turbo run test` and the set of tasks that do
the merging/reporting of coverage after that. This means you have to do
`turbo run test && whatever-else` rather than a singular `turbo`
command.

I don't know if there's a great way to model this in our DSL right now,
so I left it out. Ultimately, running `turbo run test && ...` isn't too
big of a deal, right?...Right?

### Testing Instructions

👀

---------

Co-authored-by: Chris Olszewski <[email protected]>
2025-03-04 19:04:28 +00:00

955 B

Turborepo Vite starter

This is a community-maintained example. If you experience a problem, please submit a pull request with a fix. GitHub Issues will be closed.

Using this example

Run the following command:

npx create-turbo@latest -e with-vite-react

What's inside?

This Turborepo includes the following packages and apps:

Apps and Packages

  • web: react vite ts app
  • @repo/ui: a stub component library shared by web application
  • @repo/eslint-config: shared eslint configurations
  • @repo/typescript-config: tsconfig.jsons used throughout the monorepo

Each package and app is 100% TypeScript.

Utilities

This Turborepo has some additional tools already setup for you: