mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
chore: note about setup and yarn/npm to contrib guide (#4182)
As per recent discussion in #core about setting up the repo for development and testing.
This commit is contained in:
parent
e876ce6c3d
commit
81b25ee2e2
@ -32,6 +32,18 @@ or [bug report](https://bug.nuxtjs.org/).
|
||||
A great PR, whether it includes a bug fix or a new feature, will often include tests.
|
||||
To write great tests, let us explain our test structure:
|
||||
|
||||
### Setup
|
||||
|
||||
Before running any tests, make sure all dependencies are met and build all packages:
|
||||
|
||||
```sh
|
||||
yarn
|
||||
yarn build
|
||||
yarn test
|
||||
```
|
||||
|
||||
You **must** use `yarn` to install dependencies as it'll properly resolve all dependencies from sub-packages as well, eliminating the need to `npm link` all required packages.
|
||||
|
||||
#### Fixtures
|
||||
|
||||
The fixtures (found under `tests/fixtures`) contain several Nuxt applications. To keep build time as short as possible,
|
||||
|
Loading…
Reference in New Issue
Block a user