agentsclimarketplace

Skill test writer

Skill toss/react-simplikit/.claude/skills/skill-test-writer

Write test code. 100% coverage, SSR tests, edge cases. Use when writing tests, adding test coverage.From its SKILL.md

Install
npx -y skills add toss/react-simplikit --skill skill-test-writer

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.3 KB, as published. Nobody here has run it

Test Writer

Writes tests that achieve 100% coverage.

Quick Start

yarn test:spec      # Run a single test
yarn test:coverage  # Check coverage

Core Patterns

1. SSR Test (Required)

it('is safe on server side rendering', () => {
  const result = renderHookSSR.serverOnly(() => useHook());
  expect(result.current).toBeDefined();
});

2. Basic Behavior Test

it('returns expected value', () => {
  const { result } = renderHook(() => useHook(input));
  expect(result.current).toBe(expected);
});

3. Edge Cases

it('handles null/undefined', () => { ... });
it('handles empty values', () => { ... });

4. State Change Test

it('updates when state changes', () => {
  const { result, rerender } = renderHook(({ value }) => useHook(value), {
    initialProps: { value: 'initial' },
  });
  rerender({ value: 'updated' });
  expect(result.current).toBe('updated');
});

Coverage Check

All lines, branches, and functions must have 100% coverage.

References

Keep looking

Skills are one crate of 626,474. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.