Skip to content

testing

Use for Vitest tests, mocks, coverage and failing-test diagnosis.

— (0 ratings) 4.3K downloads lobehub
$ npx skills add https://github.com/lobehub/lobehub --skill testing

Skills can run code on your computer. Review the source before installing. This listing is community-made and isn't affiliated with Anthropic.

About this skill

LobeHub Testing Guide

Quick Reference

Commands:

# Run specific test file
bunx vitest run --silent='passed-only' '[file-path]'

# Database package (client-db, PGlite — default, no pg_search; BM25 migrations skip themselves)
cd packages/database && bunx vitest run --silent='passed-only' '[file]'

# Database package (server-db, Postgres — BM25/pgvector parity, what CI measures coverage in)
cd packages/database && TEST_SERVER_DB=1 bunx vitest run --silent='passed-only' '[file]'

Never run bun run test - it runs all 3000+ tests (~10 minutes).


Installs: 4.3K | GitHub stars: 86.2K | First seen: Jan 24, 2026

Related skills

New

Testing

grill-me

Relentless interviewing skill that stress-tests plans and designs through systematic questioning.

New • 1.6M
New

Testing

grill-with-docs

Relentless design interrogation that stress-tests plans against your domain model and sharpens terminology inline.

New • 1.4M
New

Coding & dev tools

tdd

Test-driven development with vertical slices, behavior-focused tests, and incremental red-green-refactor cycles.

New • 1.3M