testing
A maintainer skill in the LobeHub repository for writing and fixing Vitest tests across its web app, packages and Electron desktop app.
スキルの内容
A maintainer skill in the LobeHub repository for writing and fixing Vitest tests across its web app, packages and Electron desktop app. It prefers spies over module mocks and asks for spies to be restored, tests behaviour rather than wiring, requires a regression test that fails without each bug fix, and says to move complex component logic into hooks instead of adding component tests. For failing tests it explains which to fix and which to delete. It gives the command for running a single file, with the database package run against PGlite or a real Postgres, warns against running the full suite of over 3,000 tests, and requires tests for every new database model or repository.
できること
- Write Vitest tests with spies and boundary mocks
- Decide whether to fix or delete a failing test
- Run one test file against PGlite or Postgres
- Add tests for new database models
概要
- 公開元
- LobeHub
- ツール
- テスト
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
含まれるファイル
- references/agent-runtime-e2e.md
- references/db-model-test.md
- references/desktop-controller-test.md
- references/electron-ipc-test.md
- references/zustand-store-action-test.md
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
詳細
出典
- スキルファイル(SKILL.md)github.com/lobehub/lobehub · 根拠となる項目:スクリプトを含む2026年11月16日
- GitHubリポジトリgithub.com/lobehub/lobehub · 根拠となる項目:公開元, 活動状況2026年11月11日
- スキルファイル(SKILL.md)github.com/lobehub/lobehub · 根拠となる項目:ライセンス2026年11月10日
- リポジトリ内のフォルダ(testing)github.com/lobehub/lobehub · 根拠となる項目:スクリプトを含む2026年11月10日