Skip to content

TestCoverageOptions

Options for running tests with coverage.

Import:

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

Signature:

export interface TestCoverageOptions extends TestOptions

Extends: TestOptions

Properties

PropertyTypeDescription
esm?booleanWhether jest runs the suite as ES modules, which adds EXPERIMENTAL_VM_MODULES_FLAG to NODE_OPTIONS.
(Inherited from TestOptions)
minCoverageInPercents?numberMinimum 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: