Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

User-centred React tests with Testing Library v1.0.0

Use this resource to write or review robust, user-centred React Testing Library tests

New

  • 456 downloads
  • 174 likes
  • 146 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install react-testing-library-practices

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent writes or reviews React Testing Library tests against 43 rules: role-based queries, async waits, userEvent interactions, assertions and anti-patterns. It flags tests that depend on implementation. You get tests that fail when behaviour changes, and only then.

Mostly picked by

Updated November 2, 2026

Card for the “User-centred React tests with Testing Library” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • references/: cards on role-based queries and focus checks
  • references/: cards on anti-patterns, empty waits and cleanup

Good fit for

  • Your tests break on every CSS class rename
  • Some tests use waitFor without a real condition

Not for

    Tags

    • react
    • testing library
    • tests
    • accessibility
    • jest

    About

    You say

    “Rewrite these form tests to query fields by label and check the error message that appears.”

    Card for the “User-centred React tests with Testing Library” skill

    Skill published by pproenca under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to write or review robust, user-centred React Testing Library tests
    3. Review and adjust the result

    Content preview

    Files

    • assets/templates/_template.md0.9 KB
    • LICENSE1.1 KB
    • metadata.json1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • README.md4.6 KB
    • references/_sections.md1.8 KB
    • references/a11y-role-queries-verify.md1.6 KB
    • references/a11y-test-aria-states.md1.8 KB
    • references/a11y-verify-focus.md1.5 KB
    • references/anti-container-queries.md1.4 KB
    • references/anti-empty-waitfor.md1.4 KB
    • references/anti-implementation-details.md1.6 KB
    • references/anti-manual-cleanup.md1.3 KB
    • references/anti-redundant-roles.md1.5 KB
    • references/anti-unnecessary-act.md1.3 KB
    • references/assert-accessible-description.md1.7 KB
    • references/assert-have-value.md1.5 KB
    • references/assert-jest-dom-matchers.md1.5 KB
    • references/assert-text-content.md1.3 KB
    • references/assert-visible-over-in-document.md1.4 KB
    • references/async-await-findby.md1.1 KB
    • references/async-findby-over-waitfor.md1.3 KB
    • references/async-no-side-effects-waitfor.md1.4 KB
    • references/async-single-assertion-waitfor.md1.5 KB
    • references/async-waitfor-disappear.md1.4 KB
    • references/debug-logroles.md1.4 KB
    • references/debug-screen-debug.md1.4 KB
    • references/debug-testing-playground.md1.4 KB
    • references/query-avoid-testid.md1.2 KB
    • references/query-get-vs-query.md1.5 KB
    • references/query-label-text-forms.md1.2 KB
    • references/query-prefer-role.md1.1 KB
    • references/query-role-name-option.md1.1 KB
    • references/query-use-screen.md1.2 KB
    • references/query-within-scope.md1.4 KB
    • references/setup-custom-render.md1.9 KB
    • references/setup-fake-timers.md1.4 KB
    • references/setup-mock-modules.md1.3 KB
    • references/setup-render-hook.md1.6 KB
    • references/setup-wrapper-providers.md1.3 KB
    • references/struct-arrange-act-assert.md1.8 KB
    • references/struct-avoid-beforeeach-render.md1.6 KB
    • references/struct-descriptive-names.md1.6 KB
    • references/struct-one-behavior-per-test.md1.8 KB
    • references/user-await-interactions.md1.3 KB
    • references/user-clear-before-type.md1.2 KB
    • references/user-keyboard-for-special-keys.md1.4 KB
    • references/user-prefer-userevent.md1.3 KB
    • references/user-setup-before-render.md1.2 KB
    • SKILL.md6.6 KB

    Origin and licence

    Listed unmodified

    Author
    pproenca
    Source
    github.com/pproenca/dot-skills/tree/cf93c57cac89d6fc3e4194686000411567f5caf3/skills/.experimental/react-testing-library
    Licence
    MIT

    Notice

    « react-testing-library » (pproenca, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.