From ceaf60697720d937e47c914902042b7f0393704a Mon Sep 17 00:00:00 2001 From: Jeff Bonnes Date: Sun, 31 May 2020 12:23:09 +1000 Subject: [PATCH 1/2] Fix testing specific tests instructions --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ceaabcb08..fc74673d2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -47,10 +47,10 @@ While developing you may want to test only on node.js: yarn test ``` -...or only one test file: +...or only specific tests based on describe text: ```sh -yarn test test/some.test.js +yarn test --grep 'FileType' ``` ...or run each time a file changes: From 37e3ef5ec25ffc1772615349a88a395783958568 Mon Sep 17 00:00:00 2001 From: Jeff Bonnes Date: Sun, 31 May 2020 12:29:28 +1000 Subject: [PATCH 2/2] avoid confusion with file names --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fc74673d2..2b7a20209 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -50,7 +50,7 @@ yarn test ...or only specific tests based on describe text: ```sh -yarn test --grep 'FileType' +yarn test --grep 'my test description' ``` ...or run each time a file changes: