Lightlines
By cognitedata

test-coverage

cognitedata1.9k installs

Close test gaps and reach the 80% coverage gate.

What it does

Improve a Flows app's test coverage to meet the 80% line coverage gate by fixing tooling, adding tests, and refactoring for testability.

When to use it

Use when fixing test coverage for a Flows app to meet its 80% line coverage gate.

How to use it

Give it an app, optionally narrowed to a directory or file; it fixes coverage gaps in the project and reports remaining issues.

What you provide

  • An existing project

Good to know

  • works out of sight

Latest review

What you need · 2

Uses Vitest to verify each newly written test file.

Needs the V8 coverage provider for its prescribed Vitest coverage configuration and installs it if coverage tooling is missing.


Access · 1

This skill

@vitest/coverage-v8

Execute

Installs the Vitest coverage provider