Harness-engineering test-mock-patterns

name: test-mock-patterns

install
source · Clone the upstream repo
git clone https://github.com/Intense-Visions/harness-engineering
manifest: agents/skills/claude-code/test-mock-patterns/skill.yaml
source content

name: test-mock-patterns version: "1.0.0" description: Mock modules, functions, and timers in Vitest and Jest to isolate units under test stability: static cognitive_mode: advisory-guide type: knowledge tier: 3 triggers:

  • manual platforms:
  • claude-code
  • gemini-cli
  • cursor
  • codex tools: [] paths:
  • "**/*.test.ts"
  • "**/*.spec.ts"
  • "**/*.test.tsx"
  • "vitest.config.*"
  • "jest.config.*"
  • "playwright.config.*" related_skills:
  • test-unit-patterns
  • test-msw-pattern
  • ts-generics-pattern stack_signals:
  • vitest
  • jest
  • playwright
  • testing-library keywords:
  • vi.mock
  • jest.mock
  • vi.fn
  • spyOn
  • auto-mocking
  • module-mocking metadata: author: community upstream: vitest.dev/guide/mocking.html state: persistent: false files: [] depends_on: []