Jest/Vitest unit testing with Firebase emulator mocking, TDD workflow, and 80%+ coverage enforcement
From jm-adknpx claudepluginhub javimontano/jm-adk-alfaThis skill uses the workspace's default tool permissions.
agents/guardian.mdagents/lead.mdagents/specialist.mdagents/support.mdevals/evals.jsonknowledge/body-of-knowledge.mdknowledge/knowledge-graph.mdprompts/meta.mdprompts/primary.mdprompts/variations/deep.mdprompts/variations/quick.mdtemplates/output.docx.mdtemplates/output.htmlSearches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Establish deterministic, fast-feedback unit test infrastructure using Jest or Vitest with Firebase service mocking. Enforce TDD red-green-refactor cycles and maintain coverage above 80% on all modules. [EXPLICIT]
vitest.config.ts or jest.config.ts with @testing-library/* and Firebase mock paths. [EXPLICIT]__mocks__/firebase/ with stubs for auth, firestore, functions, storage. [EXPLICIT]{ branches: 80, functions: 80, lines: 80, statements: 80 }. [EXPLICIT]vitest --coverage or jest --coverage after each cycle. [EXPLICIT]package.json: "test:unit": "vitest run --coverage". [EXPLICIT]| Input | Output |
|---|---|
Source module (.ts/.tsx) | *.test.ts file with 3+ test cases per function |
| Firebase service dependency | Mock file in __mocks__/firebase/ |
| Coverage config | coverage/ report (lcov, HTML) |
| CI pipeline trigger | Pass/fail with coverage delta |
any in test files — TypeScript strict mode applies to tests. [EXPLICIT]Timestamp.now() with fixed value via vi.useFakeTimers().onAuthStateChanged mock that emits controlled sequences.httpsCallable return with typed response objects.vi.stubEnv() — never read real .env in tests.Example invocations: