Update jest.md

Update jest.md to include optional flags.
This commit is contained in:
Adebola 2020-06-08 12:09:27 +01:00 committed by GitHub
parent cb4e03077f
commit 9254692750
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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 ```bash
# Run your tests # Run your tests
npm test -- --watch npm test -- --watch