Mocking Strategies

Mocks vs stubs vs spies, dependency injection for testing, jest.mock/unittest.mock/gomock, and when NOT to mock. Use when the user needs to isolate dependencies in tests, asks about mocking external services, or has tests tightly coupled to implementation details.

majiayu000 cd3fafd 2 files · 8.5 KB Updated 567 repo stars

File contents

majiayu000/claude-skill-registry-data/tree/main/testing/mocking-strategies-versoxbt-claude-initial-setup commit cd3fafd324

Frequently asked questions

npx skillmds add majiayu000/mocking-strategies-2