diff --git a/docs/site/content/docs/guides/tools/vitest.mdx b/docs/site/content/docs/guides/tools/vitest.mdx index 927e914bdb784..7df7bfda15f00 100644 --- a/docs/site/content/docs/guides/tools/vitest.mdx +++ b/docs/site/content/docs/guides/tools/vitest.mdx @@ -342,10 +342,10 @@ While your root `package.json` includes scripts for running tests globally: ```json title="./package.json" { "scripts": { - "test:projects": "turbo run test", + "test:projects": "vitest run", "test:projects:watch": "vitest --watch" } } ``` -This configuration allows developers to run `pnpm test:projects:watch` at the root for a seamless local development experience using Vitest projects, while CI continues to use `turbo run test` to leverage package-level caching. **You'll still need to handle merged coverage reports manually as described in the previous section**. +This configuration allows developers to run `pnpm test:projects` or `pnpm test:projects:watch` at the root for a seamless local development experience using Vitest projects, while CI continues to use `turbo run test` to leverage package-level caching. **You'll still need to handle merged coverage reports manually as described in the previous section**. diff --git a/examples/with-vitest/README.md b/examples/with-vitest/README.md index b8be0eb4c8fe3..04b81e0f3a6ec 100644 --- a/examples/with-vitest/README.md +++ b/examples/with-vitest/README.md @@ -24,7 +24,7 @@ pnpm build --filter=@repo/vitest-config ## Available Commands - `pnpm test`: Runs tests in each package using Turborepo (leverages caching) -- `pnpm test:projects`: Same as above, explicitly named for the package-level approach +- `pnpm test:projects`: Runs tests using Vitest's projects feature - `pnpm test:projects:watch`: Runs tests using Vitest's projects feature in watch mode - `pnpm view-report`: Collects coverage from each package and shows it in a merged report diff --git a/examples/with-vitest/package.json b/examples/with-vitest/package.json index a36f112073950..44c2b6787f306 100644 --- a/examples/with-vitest/package.json +++ b/examples/with-vitest/package.json @@ -3,7 +3,7 @@ "private": true, "scripts": { "test": "turbo run test", - "test:projects": "turbo run test", + "test:projects": "vitest run", "test:projects:watch": "vitest --watch", "view-report": "turbo run view-report" },