AI AGENT ADDONS
Testing & QA
1,347installs

This guide helps you write and run tests using Vitest. It covers everything from running a single test file to fixing failing tests and improving coverage. You will learn the core principles like preferring vi.spyOn over vi.mock and testing behavior instead of implementation details.

Developers working on the LobeHub project can follow the quick commands to run tests in the database package or the main app. The guide also explains how to handle database models, mocks, and regression tests. It is designed to save time by avoiding slow commands that run all tests.

When tests fail due to changes in the code, this guide helps you decide whether to update the test or delete it. It keeps your test suite healthy and fast. Use the reference files for deeper examples on specific topics like Electron IPC or Zustand stores.

Add Testing skill to your workflow

Global

mkdir -p ~/.claude/skills/testing

Project

mkdir -p .claude/skills/testing

Source Repository

Stars
79,191
Forks
15,490
Watchers
79,191
License
NOASSERTION
Last Push
23 days ago
Created
3 years ago