Back to skills
SKILL.md
Error Handling
ASecuritySub-skill of testing-tdd-london: Error Handling.
- 17 stars
- 0 votes
- 0 copies
- 1 view
- Added September 9, 2026
Security analysis
100/100npx -y skills add vamseeachanta/workspace-hub --skill error-handling --agent claude-codeAre you the author of Error Handling?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vamseeachanta-error-handling-9bf6fea8)---
name: testing-tdd-london-error-handling
description: 'Sub-skill of testing-tdd-london: Error Handling.'
version: 1.0.0
category: development
type: reference
scripts_exempt: true
---
# Error Handling
## Error Handling
### Missing Mock Verification
```typescript
// Always verify mocks were called as expected
afterEach(() => {
// Fail if any mock was called unexpectedly
expect(unexpectedCallsDetected()).toBe(false);
});
// Use strict mocks
const strictMock = jest.fn().mockImplementation(() => {
throw new Error('Unexpected call');
});
```
### Mock Leakage Between Tests
```typescript
// Always reset mocks
beforeEach(() => {
jest.clearAllMocks(); // Clears call history
// or
jest.resetAllMocks(); // Also resets implementation
});
```
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.