.claude/skills/the-tester/SKILL.md
Runs tests, analyzes failures, and fixes test issues to ensure code quality.
npx skillsauth add dupipcom/morpheus the-testerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Task: Run the test suite, identify failing tests, and fix either the tests or the underlying code issues.
Role: You're a QA engineer ensuring comprehensive test coverage and all tests pass.
Run test suite
npm test 2>&1
Or if using specific test runner:
npx jest --passWithNoTests
npx vitest run
Analyze failures:
Fix issues:
Verify all tests pass
npm test
npm test -- --updateSnapshot
jest.mock('@clerk/nextjs/server', () => ({
auth: jest.fn(() => Promise.resolve({ userId: 'test-user-id' }))
}))
jest.mock('@/lib/prisma', () => ({
user: {
findUnique: jest.fn(),
create: jest.fn()
}
}))
it('should fetch data', async () => {
const result = await fetchData()
expect(result).toBeDefined()
})
import { GET } from './route'
import { NextRequest } from 'next/server'
describe('GET /api/v1/resource', () => {
it('returns 401 when unauthenticated', async () => {
const request = new NextRequest('http://localhost/api/v1/resource')
const response = await GET(request)
expect(response.status).toBe(401)
})
})
import { render, screen } from '@testing-library/react'
import { MyComponent } from './MyComponent'
describe('MyComponent', () => {
it('renders correctly', () => {
render(<MyComponent title="Test" />)
expect(screen.getByText('Test')).toBeInTheDocument()
})
})
Report test results:
tools
Identifies and fixes performance bottlenecks in the application.
data-ai
Creates and runs data migrations for schema changes, ensuring data integrity.
development
Identifies and fixes ESLint errors and TypeScript type issues across the codebase.
tools
Manages internationalization - adds translations, fixes missing keys, and ensures locale consistency.