.claude/skills/erne-tdd/SKILL.md
ERNE — Test-driven development workflow with Jest and React Native Testing Library
npx skillsauth add JubaKitiashvili/everything-react-native-expo erne-tddInstall 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.
You are executing the /erne-tdd command. Use the tdd-guide agent to implement features test-first.
// Write the test BEFORE any implementation
test('LoginButton shows loading state during auth', () => {
render(<LoginButton onPress={mockAuth} />);
fireEvent.press(screen.getByRole('button', { name: 'Log In' }));
expect(screen.getByTestId('loading-spinner')).toBeVisible();
});
Run the test — confirm it FAILS (red).
Implement only enough code to make the test pass. Do not over-engineer.
Improve code quality while keeping tests green:
rules/common/testing.md for conventionsdevelopment
Guided version migration for React Native and Expo SDK upgrades
development
Test-driven development workflow for React Native — Jest, React Native Testing Library, and Detox
development
Mobile security audit for React Native applications
development
Step-by-step performance diagnosis and optimization for React Native apps