You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -969,10 +969,23 @@ A list of reporter names that Jest uses when writing coverage reports. Any [ista
969
969
970
970
Indicates whether the coverage information should be collected while executing the test. Because this retrofits all executed files with coverage collection statements, it may significantly slow down your tests.
971
971
972
-
### `collectCoverageOnlyFrom`[object]
972
+
### `collectCoverageFrom`[object]
973
973
(default: `undefined`)
974
974
975
-
An object that, when present, indicates a set of files for which coverage information should be collected. Any files not present in this set will not have coverage collected for them. Since there is a performance cost for each file that we collect coverage information from, this can help prune this cost down to only the files in which you care about coverage (such as the specific modules that you are testing).
975
+
An array of [glob patterns](https://github.com/sindresorhus/multimatch)
976
+
indicating a set of files for which coverage information should be collected. If a file matches
977
+
the specified glob pattern, coverage information will be collected for it even if no tests exist for
978
+
this file and it's never required in the test suite.
0 commit comments