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
Copy file name to clipboardexpand all lines: docs/config/index.md
+10-2
Original file line number
Diff line number
Diff line change
@@ -617,7 +617,7 @@ Isolate environment for each test file. Does not work if you disable [`--threads
617
617
618
618
### coverage
619
619
620
-
You can use [`c8`](https://github.com/bcoe/c8) or [`istanbul`](https://istanbul.js.org/) for coverage collection.
620
+
You can use [`c8`](https://github.com/bcoe/c8), [`istanbul`](https://istanbul.js.org/) or [a custom coverage solution](/guide/coverage#custom-coverage-provider) for coverage collection.
621
621
622
622
You can provide coverage options to CLI with dot notation:
623
623
@@ -631,7 +631,7 @@ If you are using coverage options with dot notation, don't forget to specify `--
631
631
632
632
#### provider
633
633
634
-
-**Type:**`'c8' | 'istanbul'`
634
+
-**Type:**`'c8' | 'istanbul' | 'custom'`
635
635
-**Default:**`'c8'`
636
636
-**CLI:**`--coverage.provider=<provider>`
637
637
@@ -863,6 +863,14 @@ See [istanbul documentation](https://github.com/istanbuljs/nyc#ignoring-methods)
863
863
864
864
Watermarks for statements, lines, branches and functions. See [istanbul documentation](https://github.com/istanbuljs/nyc#high-and-low-watermarks) for more information.
865
865
866
+
#### customProviderModule
867
+
868
+
-**Type:**`string`
869
+
-**Available for providers:**`'custom'`
870
+
-**CLI:**`--coverage.customProviderModule=<path or module name>`
871
+
872
+
Specifies the module name or path for the custom coverage provider module. See [Guide - Custom Coverage Provider](/guide/coverage#custom-coverage-provider) for more information.
The custom providers require a `customProviderModule` option which is a module name or path where to load the `CoverageProviderModule` from. It must export an object that implements `CoverageProviderModule` as default export:
0 commit comments