testing
A maintainer skill in the LobeHub repository for writing and fixing Vitest tests across its web app, packages and Electron desktop app.
O que a skill ensina
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.
O que faz
- 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
Sobre
- Publicador
- LobeHub
- Ferramenta
- Testes
Instalação
O projeto não documenta passos de instalação que tenhamos conseguido confirmar. Veja as instruções do próprio projeto
O que tem dentro
- 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
Servidores MCP e skills podem executar código no seu computador e agir sobre os seus dados. Revise o código-fonte antes de instalar.
Detalhes
| Fato | Valor | Fonte |
|---|---|---|
| Tipo | Skill | |
| Ferramenta | Testes | |
| Publicador | LobeHub | fonte |
| Status oficial | Não informado na documentação | |
| Exige chave de API ou login | Não informado na documentação | |
| Inclui scripts | Não | fonte |
| Plataformas | Não informado na documentação | |
| Clientes de IA | Não informado na documentação | |
| Licença | NOASSERTION | fonte |
| Preço | Não informado na documentação | |
| Atividade | Último commit em 11 de nov. de 202684.974 estrelas no GitHubDados de download indisponíveis (não está no npm nem no PyPI) | fonte |
| Links | Repositório Site |
Fontes
- Arquivo da skill (SKILL.md)github.com/lobehub/lobehub · Comprova: Inclui scripts16 de nov. de 2026
- Repositório no GitHubgithub.com/lobehub/lobehub · Comprova: Publicador, Atividade11 de nov. de 2026
- Arquivo da skill (SKILL.md)github.com/lobehub/lobehub · Comprova: Licença10 de nov. de 2026
- Pasta no repositório (testing)github.com/lobehub/lobehub · Comprova: Inclui scripts10 de nov. de 2026