Sub-skill of testing-tdd-london: Error Handling.
Scanned 9/9/2026
Install to Claude Code
npx -y skills add vamseeachanta/workspace-hub --skill error-handling --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Error Handling?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/vamseeachanta-error-handling-b1782341)More formats (shields.io, HTML) on the badges page.
---
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
});
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Practical guide to testing web applications with screen readers for comprehensive accessibility validation.