agentsclimarketplace

React component testing

Skill alexngai/skill-tree/docs/demo/skills/react-component-testing

Version control and evolution for AI agent skills — versioned storage, dynamic serving/loadouts, multi-agent git sync, and cross-repo federation.

Install
npx -y skills add alexngai/skill-tree --skill react-component-testing

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

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Test React components with Testing Library — render, query by role, and assert on user-visible behavior.

SKILL.md

0.7 KB, as published. Nobody here has run it

React Component Testing

Test what the user sees, not implementation details.

  1. render(<Component />) from @testing-library/react.
  2. Query by accessible role: screen.getByRole('button', { name: /save/i }).
  3. Drive interactions with userEvent, then assert on the resulting DOM.
  4. Avoid container.querySelector and snapshot-everything tests — they break on refactors.

Prefer findBy* for async UI and getBy* for content that is already present.

Keep looking

Skills are one crate of 328,083. 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.