From 0c6cca1d983eea2ab56a8b4d7af842068bab1b4f Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Tue, 20 Nov 2018 21:22:00 +0000 Subject: [PATCH] jest: add page (#2528) --- pages/common/jest.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/jest.md diff --git a/pages/common/jest.md b/pages/common/jest.md new file mode 100644 index 0000000000..691cab7b47 --- /dev/null +++ b/pages/common/jest.md @@ -0,0 +1,23 @@ +# jest + +> A zero-configuration JavaScript testing platform. + +- Run all tests: + +`jest` + +- Run only tests with a name that matches the regex pattern: + +`jest -t {{spec_name}}` + +- Run only tests relating to uncommitted files: + +`jest --onlyChanged` + +- Watch files for changes and rerun related tests: + +`jest --watch` + +- Show help: + +`jest --help`