From 92546927506179884ba452e56e7aea472950ff01 Mon Sep 17 00:00:00 2001 From: Adebola Date: Mon, 8 Jun 2020 12:09:27 +0100 Subject: [PATCH] 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