docs: add tips for building first before running test for contribute Nextjs. (#41379)
close https://github.com/vercel/next.js/issues/41378 add tips for building first before running tests for contribute Nextjs ## Documentation / Examples - [x] Make sure the linting passes by running `pnpm lint`
This commit is contained in:
parent
7fc301d0b5
commit
830750af30
1 changed files with 8 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue