Skip to content

ObsidianPluginVitestConfigContext.coverageExclude

ObsidianPluginVitestConfigContext › coverageExclude

Type: string[]

The coverage exclude globs. Push onto it to drop more files from the coverage report.

Declaration files are excluded by default because the coverage include below is src/**\/*.ts, which a .d.ts matches. A declaration file emits no runtime code, so it reports 0% and no test can ever raise it — a plugin that grows one under src/ silently loses its 100% gate, and the usual remedy of an inline v8 ignore comment does not apply to a type-only file.