Skip to content

Commit

Permalink
chore(docs): Add Testing section in CONTRIBUTING.md (#1059)
Browse files Browse the repository at this point in the history
  • Loading branch information
phacks committed Jul 16, 2020
1 parent 5dc5ce6 commit 565dc75
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -3,6 +3,9 @@
- [requirements](#requirements)
- [setup](#setup)
- [development](#development)
- [storybook](#storybook)
- [demo/doc website](#demodoc-website)
- [testing](#testing)
- [formatting](#formatting)
- [linting](#linting)
- [screenshots](#screenshots)
Expand Down Expand Up @@ -62,6 +65,23 @@ You can also build the packages without running a watcher, you have two options:
1. Rebuild all the packages via `make packages-build` or…
2. Rebuild only a specific package, for example `make package-build-bar` for `@nivo/bar` package

### Testing

To run unit tests on all packages, run the following command:

```
make packages-test
```

If you only made modifications on a specific package,
you can use the scoped form to speed up the process:

```
make package-test-bar
```

where `bar` is the name of the targeted nivo package.

### Formatting

Nivo uses prettier in order to provide a consistent code style.
Expand Down

0 comments on commit 565dc75

Please sign in to comment.