Skip to content

TestCoverageOptions

Options for running tests with coverage.

Import:

import type { TestCoverageOptions } from '@mnaoumov/typescript-dev-toolkit/test-runners/auto';

Signature:

export interface TestCoverageOptions extends TestOptions

Extends: TestOptions

Properties

PropertyTypeDescription
esm?booleanWhether jest runs the suite as ES modules. Vitest ignores it.
(Inherited from TestOptions)
minCoverageInPercents?numberMinimum coverage percentage required, for lines, functions, branches and statements alike.
projects?string[]The projects to run. Vitest also runs each one's name:* sub-projects; jest matches a displayName exactly.
(Inherited from TestOptions)
runner?TestRunnerThe runner to use. Omitted, detectTestRunner chooses it.
(Inherited from TestOptions)

Links to this page: