Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →TDD practices and test utilities for suite-common packages, including Red-Green-Refactor workflow and @suite-common/test-utils usage. Use when writing tests for suite-common packages.
.claude/skills/trezor-tests-common/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -5% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -39% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 4% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 9% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 6% | 0% |
This skill enforces Test-Driven Development (TDD) practices for suite-common packages and ensures proper usage of the @suite-common/test-utils package.
reason (e.g., "Expected value to be X but got Y").
@suite-common/test-utils for all suite-common testing that involves React hooks.@testing-library/react when testing hooks.renderHookWithStoreProvider.Before submitting code, ensure:
@suite-common/test-utils for hook tests (not direct @testing-library/react)renderHookWithStoreProvider for hooks needing store, renderHook otherwise).test.ts or .test.tsx naming conventionOther measured skills in the registry, with their headline benchmark lift.