Last active
October 13, 2022 12:15
-
-
Save alicerocheman/17032c7f3c379f88fa25fc8ef94c8b43 to your computer and use it in GitHub Desktop.
collect jest test coverage from specific file or folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# File | |
yarn test path/to/file.test --coverage --collectCoverageFrom=path/to/file.ext | |
# Folder | |
yarn test path/to/folder --coverage --collectCoverageFrom='["path/to/folder/**/*.ext"]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment