Skip to content

Commit

Permalink
docs: Update testing configuration documentation for clarity (#7683)
Browse files Browse the repository at this point in the history
### Description

The Testing section is really helpful, but it would be clearer by
specifying exactly where each of these snippets should be placed.

Before: 
<img width="400" alt="Screenshot 2024-03-09 at 8 08 59 AM"
src="https://github.com/vercel/turbo/assets/26635607/1e8e8b05-4702-402b-8ea8-df7d9e6f21cf">

After: 
<img width="400" alt="Screenshot 2024-03-09 at 8 14 03 AM"
src="https://github.com/vercel/turbo/assets/26635607/e6ab7ce4-0cb7-4f4d-b14d-9b70598ce7c3">


Looking forward to your thoughts and feedback.
Thanks.
  • Loading branch information
sooster910 committed Mar 14, 2024
1 parent 2362582 commit 330a8dc
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 330a8dc

Please sign in to comment.