new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Vitest · Config reference · all subjects

coverage options signature

28 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

coverage.thresholds.functions type

The coverage.thresholds.functions option has type number.

coverage.thresholds.branches type

The coverage.thresholds.branches option has type number.

coverage.thresholds.statements type

The coverage.thresholds.statements option has type number.

coverage.thresholds.lines type

The coverage.thresholds.lines option has type number.

coverage.provider type and default

The coverage.provider option has type 'v8' | 'istanbul' | 'custom' with a default value of 'v8'.

coverage.enabled type and default

The coverage.enabled option has type boolean with a default value of false.

coverage.include type and default

The coverage.include option has type string[] with a default of files that were imported during test run.

coverage.exclude type and default

The coverage.exclude option has type string[] with a default value of an empty array [].

coverage.clean type and default

The coverage.clean option has type boolean with a default value of true.

coverage.cleanOnRerun type and default

The coverage.cleanOnRerun option has type boolean with a default value of true.

coverage.reportsDirectory type and default

The coverage.reportsDirectory option has type string with a default value of './coverage'.

coverage.reporter type and default

The coverage.reporter option has type string | string[] | [string, {}][] with a default value of ['text', 'html', 'clover', 'json'].

coverage.reportOnFailure type and default

The coverage.reportOnFailure option has type boolean with a default value of false.

coverage.allowExternal type and default

The coverage.allowExternal option has type boolean with a default value of false.

coverage.excludeAfterRemap type and default

The coverage.excludeAfterRemap option has type boolean with a default value of false.

coverage.skipFull type and default

The coverage.skipFull option has type boolean with a default value of false.

coverage.thresholds.perFile type and default

The coverage.thresholds.perFile option has type boolean | { 100?: boolean, lines?: number, functions?: number, branches?: number, statements?: number } with a default value of false.

coverage.thresholds.autoUpdate type and default

The coverage.thresholds.autoUpdate option has type boolean | function with a default value of false.

coverage.thresholds.100 type and default

The coverage.thresholds.100 option has type boolean with a default value of false.

coverage.thresholds glob-pattern type and default

The coverage.thresholds[glob-pattern] option has type { statements?: number, functions?: number, branches?: number, lines?: number, perFile?: boolean | object } with a default value of undefined.

coverage.ignoreClassMethods type and default

The coverage.ignoreClassMethods option has type string[] with a default value of an empty array [].

coverage.watermarks type and default

The coverage.watermarks option has type { statements?: [number, number], functions?: [number, number], branches?: [number, number], lines?: [number, number] } with a default value of { statements: [50, 80], functions: [50, 80], branches: [50, 80], lines: [50, 80] }.

coverage.processingConcurrency type and default

The coverage.processingConcurrency option has type boolean with a default value of Math.min(20, os.availableParallelism?.() ?? os.cpus().length).

coverage.instrumenter type

The coverage.instrumenter option has type (options: InstrumenterOptions) => CoverageInstrumenter and is available for the 'istanbul' provider. It is a factory for a custom instrumenter to use in place of the default istanbul-lib-instrument.

coverage.customProviderModule type

The coverage.customProviderModule option has type string and is available for the 'custom' provider. It specifies the module name or path for the custom coverage provider module.

coverage.htmlDir type and default

The coverage.htmlDir option has type string with a default that is automatically inferred from 'html', 'html-spa', or 'lcov' coverage reporters.

coverage.changed type and default

The coverage.changed option has type boolean | string with a default value of false, which inherits from test.changed.

coverage.autoAttachSubprocess type and default

The coverage.autoAttachSubprocess option has type boolean with a default value of false and is available for the 'v8' provider.

Give your agent this brain