Skip to content

Commit

Permalink
docs: Update testing configuration documentation for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
sooster910 committed Mar 8, 2024
1 parent ca71846 commit 107faf7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/pages/repo/docs/handbook/testing.mdx
Expand Up @@ -65,7 +65,10 @@ Because of this difference, we recommend specifying **two separate Turborepo tas

Here's an example:

Inside your individual `package.json` files for each workspace:

<Tabs items={["Jest", "Vitest"]} storageKey="selected-test-runner">

<Tab>
```json filename="apps/web/package.json"
{
Expand All @@ -88,6 +91,8 @@ Here's an example:
</Tab>
</Tabs>

Inside the root `turbo.json`:

```json filename="turbo.json"
{
"pipeline": {
Expand All @@ -99,6 +104,8 @@ Here's an example:
}
```

Inside the root `package.json`:

```json filename="package.json"
{
"scripts": {
Expand Down

0 comments on commit 107faf7

Please sign in to comment.