guides/complete-guide/examples/skills/testing-standards/SKILL.md
--- name: testing-standards description: Write comprehensive tests following TDD and best practices. Use when generating unit tests, integration tests, or end-to-end tests for any code dependencies: - jest - @testing-library/react --- # Testing Standards Skill ## Test Structure (AAA Pattern) ```javascript describe('Component/Function Name', () => { it('should do something specific', () => { // Arrange - Set up test data const input = { foo: 'bar' } // Act - Execute the
npx skillsauth add michelabboud/claude-code-helper guides/complete-guide/examples/skills/testing-standardsInstall 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.
describe('Component/Function Name', () => {
it('should do something specific', () => {
// Arrange - Set up test data
const input = { foo: 'bar' }
// Act - Execute the code
const result = functionUnderTest(input)
// Assert - Verify results
expect(result).toEqual(expectedOutput)
})
})
it('should return 401 when token is expired')development
Score a coding task by complexity (1-10) and recommend the right model (haiku/sonnet/opus) before invoking a language agent. Holds the per-language rubric for all language/framework experts.
tools
When the user asks about [TRIGGER WORDS], wants to [ACTION], or needs help with [TOPIC], use this skill to provide [CAPABILITY]
tools
Check if your claude-code-helper installation is up to date and apply updates. Reads the local manifest and compares against the latest component-versions index on GitHub. Supports checking all components, a single component by name, and applying updates with automatic backup.
testing
Comprehensive testing skill covering TDD, E2E, BDD, contract testing, mutation testing, and visual regression. Use when writing tests, designing test strategy, adding test coverage, fixing flaky tests, mocking services, setting up testing frameworks, or any testing task. Triggers on 'write tests', 'add test coverage', 'test strategy', 'fix flaky test', 'mock', 'E2E test', 'unit test', 'integration test'.