Install any skill in seconds. Free to start, no credit card required.
Get Started Free →aiskillstore/testing-patterns
Cross-language testing strategies and patterns.
Passed 7 of 22 test cases with the skill, and 15 of 22 without it.
2 fixed17 passed either way1 still failing2 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
I just created a new service class `NotificationService` in `@/lib/services/notification-service` that formats message templates and delivers notifications. Please write a unit test suite for this service that checks both valid message formatting and handling of bad input.
| Checked | Without skill | With skill |
|---|---|---|
| Imports testing utilities from 'vitest' | Missed | Passed |
| Uses vi.mock or vi.clearAllMocks for mock setup | Missed | Passed |
The instructions your model reads when the skill loads.
When to Use: Writing tests for new features, agents, API routes
Command: npm run test
Required: 100% pass rate
Location: tests/ directory
import { describe, it, expect, vi, beforeEach } from 'vitest';
import { MyService } from '@/lib/services/my-service';
describe('MyService', () => {
let service: MyService;
beforeEach(() => {
vi.clearAllMocks();
service = new MyService();
});
it('should process data correctly', () => {
const input = { value: 42 };
const result = service.process(input);
expect(result).toBeDefined();
expect(result.value).toBe(42);
});
it('should handle errors', () => {
expect(() => service.process(null)).toThrow();
});
test cases passed, vs 15 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.