react-testing-library icon indicating copy to clipboard operation
react-testing-library copied to clipboard

🐐 Simple and complete React DOM testing utilities that encourage good testing practices.

Results 106 react-testing-library issues
Sort by recently updated
recently updated
newest added

**What**: Added a new GitHub Action workflow for npm Trusted Publishing using OpenID Connect (OIDC). **Why**: To enable secure, tokenless npm publishing directly from GitHub Actions. This improves CI/CD security...

**What:** Replaced the usage of the chalk package with colorette in tests/failOnUnexpectedConsoleCalls.js to address a security issue with the previous dependency. **Why:** The chalk package version in use was flagged...

> ## Overview > Recent [supply chain attacks on npm](https://github.blog/security/supply-chain-security/our-plan-for-a-more-secure-npm-supply-chain/) have highlighted the need for stronger package publishing security. The September 2025 Shai-Hulud worm compromised 500+ packages through stolen maintainer...

- `@testing-library/react` version: 16.3.0 - Testing Framework and version: Vitest 3.2.4 - DOM Environment: jsdom 26.1.0 ### Relevant code or config: ```ts expect( await screen.findByText( "text which is supposed to...

### Versions - `@testing-library/react` version: `16.3.0` - Testing Framework and version: `[email protected]` - DOM Environment: `[email protected]` ### Relevant code or config: Test component using `onMouseEnter`: ```js // TestMouseEnter.tsx import {...

- `@testing-library/react` version: 16.3.0 - `react` version: 19.2.0 - Testing Framework and version: - `jest`: 30.2.0 - DOM Environment: - `jsdom`: 27.0.1 ### Relevant code or config: None (please see...

- `@testing-library/react` version: 16.3.0 - Testing Framework and version: `[email protected]` - DOM Environment: `[email protected]` ### Relevant code or config: ```ts import { Dialog, DialogBody, DialogContent, DialogSurface, DialogTitle, } from "@fluentui/react-components";...

## Summary The "Warning: The current testing environment is not configured to support act(...)" warning persists with the latest versions of React, React Testing Library, and Vitest as of January...

From my understanding, user actions do not need to be wrapped in `act` yet I'm still getting an error that state updates are happening outside of react for a datepicker...

- `@testing-library/react` version: 16.3.0 - Testing Framework and version: jest 30.1.3 - DOM Environment: jsdom 26.1.0 ### Relevant code or config: ```js test('it loads', async () => { render(); await...