TestCoverageOptions
Options for running tests with coverage.
Import:
import type { TestCoverageOptions } from '@mnaoumov/typescript-dev-toolkit/test-runners/jest';Signature:
export interface TestCoverageOptions extends TestOptionsExtends: TestOptions
Properties
| Property | Type | Description |
|---|---|---|
| esm? | boolean | Whether jest runs the suite as ES modules, which adds EXPERIMENTAL_VM_MODULES_FLAG to NODE_OPTIONS.(Inherited from TestOptions) |
| minCoverageInPercents? | number | Minimum coverage percentage required, for lines, functions, branches and statements alike. If the actual coverage falls below it, jest exits with a non-zero code. |
| projects? | string[] | The projects to run, by their displayName, passed to jest's --selectProjects. Unlike vitest's runner, a name matches only itself: jest has no name:* form.(Inherited from TestOptions) |
Links to this page: