From 565dc7559f8eca987e1bc955c7fd2c47dfb3ba29 Mon Sep 17 00:00:00 2001 From: Nicolas Goutay Date: Thu, 16 Jul 2020 16:08:18 +0200 Subject: [PATCH] chore(docs): Add Testing section in CONTRIBUTING.md (#1059) --- CONTRIBUTING.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 24c3944dc..3c66bc0d8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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) @@ -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.