From 92546927506179884ba452e56e7aea472950ff01 Mon Sep 17 00:00:00 2001 From: Adebola Date: Mon, 8 Jun 2020 12:09:27 +0100 Subject: [PATCH 1/2] Update jest.md Update jest.md to include optional flags. --- jest.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jest.md b/jest.md index e02d1f6ae..19a2c1582 100644 --- a/jest.md +++ b/jest.md @@ -28,6 +28,14 @@ npm install --save-dev jest babel-jest } ``` +### Optional Flags +``` +**--coverage** : See a summary of test coverage +**--detectOpenHandles**: See a summary of ports that did not close +**--runInBand**: Run all tests one after the other. +npm test + [flag] +``` + ```bash # Run your tests npm test -- --watch From d56fcc75bfc5a37b3fbf57ad498455e9c367d8d3 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Fri, 12 Jun 2020 09:59:02 +1000 Subject: [PATCH 2/2] Update formatting --- jest.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/jest.md b/jest.md index 19a2c1582..f1527c460 100644 --- a/jest.md +++ b/jest.md @@ -28,14 +28,6 @@ npm install --save-dev jest babel-jest } ``` -### Optional Flags -``` -**--coverage** : See a summary of test coverage -**--detectOpenHandles**: See a summary of ports that did not close -**--runInBand**: Run all tests one after the other. -npm test + [flag] -``` - ```bash # Run your tests npm test -- --watch @@ -101,6 +93,15 @@ it.skip(ยทยทยท) // alias: xit() See: [test.skip](http://facebook.github.io/jest/docs/en/api.html#testskipname-fn) + +### Optional flags + +| Flag | Description | +| --------------------- | ---------------------------------------- | +| `--coverage` | See a summary of test coverage | +| `--detectOpenHandles` | See a summary of ports that didn't close | +| `--runInBand` | Run all tests one after the other | + Expect ------ {: .-three-column}