
Description
testing is an agent skill from the LobeHub repository with a quick reference for running Vitest tests, writing mocks, measuring coverage and diagnosing failing tests. It gives the commands for the common cases: running a single test file with a quiet, passed-only output, running the database package with its default client database, which uses PGlite and skips the BM25 migrations, and running the server database tests against Postgres, which is set with the TEST_SERVER_DB environment variable and matches what continuous integration measures for coverage. The skill also warns that the full test script runs more than 3,000 tests and takes about ten minutes, so contributors should run the tests for the files they changed rather than the whole suite. It is for developers who want to check a change quickly and to reproduce a failing test in the same way CI does. The skill covers the mocking and diagnosis guidance that the listing mentions, and the quick reference is the entry point for the rest of the testing guide. It passes Gen Agent Trust Hub, Socket and Snyk on skills.sh. Install it with npx skills add https://github.com/lobehub/lobehub --skill testing.…
Highlights
- Quick reference for Vitest commands and single-file runs
- Client database tests with PGlite and server database tests with Postgres
- Warns against running the full suite of more than 3,000 tests
- Covers mocks, coverage and failing-test diagnosis
Ratings & Reviews
No ratings yet
Be the first to rate testing.
People also visit
testing FAQ
What test runner does it use?
Vitest.
How do I run the server database tests?
Set TEST_SERVER_DB to 1 in the packages/database folder, which runs them against Postgres.
Why shouldn't I run bun run test?
The skill says it runs all of the more than 3,000 tests and takes about ten minutes, so run the files you changed.
How do I install it?
Run npx skills add https://github.com/lobehub/lobehub --skill testing.
Which security audits does it have?
On skills.sh, Gen Agent Trust Hub, Socket and Snyk all pass.
What are the best testing alternatives?
Popular alternatives to testing include frontend-testing, vitest and senior-qa. See all testing alternatives






