Skip to content

testCoverage

Runs the test suite with coverage.

Import:

import { testCoverage } from 'obsidian-dev-utils/script-utils/test-runners/vitest';

Signature:

function testCoverage(options: TestCoverageOptions): Promise<void>

Parameters:

ParameterTypeDescription
optionsTestCoverageOptionsOptional coverage configuration.

Returns: Promise<void> — A Promise that resolves when the tests have completed.