Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add tips for building first before running test for contribute Nextjs. #41379

Merged
merged 2 commits into from Oct 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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