
Test Coverage
This one automates the grind of hitting 80% line coverage for Flows apps. It doesn't just run a report and leave you hanging. It configures Vitest or Jest coverage tooling if it's missing, audits your exclude rules to catch overly broad exemptions (like hiding entire component or page directories), then writes the actual missing test files for hooks, services, and utilities. It knows to use renderHook with QueryClientProvider wrappers for React hooks and vi.mock for services. If tests are broken, it fixes imports and mocks before measuring coverage. Useful when you're staring at a 60% coverage gate failure and need to close the gap without spending half a day figuring out which files have no tests.
- skills.sh installs
- 1.9K
- GitHub stars
- 6
- last updated
- Aug 21, 2026
Install
$ npx -y skills add cognitedata/builder-skills --skill test-coverage --agent claude-codeInstalls into .claude/skills of the current project.
Files
Test Coverage Fix
Fix test coverage for $ARGUMENTS (or the whole app if no argument is given). This skill enforces the 80% line coverage hard gate required for Flows app approval by finding AND fixing coverage gaps. Work through every step in order.
Step 1 — Verify test framework and coverage tooling
Check that the project has a working test framework with coverage configured:
# Check for vitest or jest in package.json
grep -E "(vitest|jest)" package.json
# Check for coverage configuration
cat vitest.config.ts 2>/dev/null || cat vitest.config.js 2>/dev/null || cat jest.config.ts 2>/dev/null || cat jest.config.js 2>/dev/null
Verify:
- A test framework (Vitest or Jest) is installed and configured
- The config file has a
coveragesection (e.g.coverage: { provider: 'v8', ... }in vitest.config.ts) - A coverage reporter is configured (at least
textandlcovorjson-summary)
If coverage tooling is not configured, fix it now:
- Install the coverage provider:
pnpm add -D @vitest/coverage-v8
Sponsors
Details
- Repository
- github.com/cognitedata/builder-skills
- Categories
- Testing & QA, Debugging
- First seen
- Jun 3, 2026
More from cognitedata/builder-skills
All 26- Dependencies Audit1.9K
- Design1.9K
- Reveal 3d1.9K
- Integrate Todo List1.9K
- Correctness And Error Handling1.9K
- Dm Limits And Best Practices1.9K
- Integrate Atlas Chat1.9K
- Integrate File Viewer1.9K
- Security1.9K
- Setup Python Tools1.9K
- Graph Viewer1.9K
- Setup Flows Auth1.9K
- Performance1.9K
- Create Client Tool1.9K
- Pull Changes Resolve Conflicts1.9K
- Use Topbar1.9K
- Migrate App To Flows1.7K
- Integrate Fusion Agent1.7K
- Flows Code Review1.6K
- Flows Design Review1.1K
- Flows App Brief1.1K
- Flows External App Submit1.1K
- Flows App Review298
- Skill Creator2.5K