Skip to content

Commit

Permalink
docs: add tips for building first before running test for contribute …
Browse files Browse the repository at this point in the history
…Nextjs. (vercel#41379)

close vercel#41378

add tips for building first before running tests for contribute Nextjs

## Documentation / Examples

- [x] Make sure the linting passes by running `pnpm lint`
  • Loading branch information
teobler authored and Kikobeats committed Oct 24, 2022
1 parent 0be9f3e commit 002f70b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contributing/core/testing.md
Expand Up @@ -2,6 +2,14 @@

## Running tests

Before you start to run tests, you need to build project first:

```bash
pnpm build
```

And for more detail about building, you can check out [building.md](./building.md)

We recommend running the tests in headless mode (with the browser windows hidden) and with a specific directory pattern and/or test name (`-t`) which ensures only a small part of the test suite is run locally:

For example, running one test in the production test suite:
Expand Down

0 comments on commit 002f70b

Please sign in to comment.