testing-library / react-testing-library

🐐 Simple and complete React DOM testing utilities that encourage good testing practices.
https://testing-library.com/react
MIT License
19.04k stars 1.11k forks source link

fix: Add support for exactOptionalPropertyTypes in TypeScript #1351

Closed eps1lon closed 2 months ago

eps1lon commented 2 months ago

Closes https://github.com/testing-library/react-testing-library/issues/1320

Just going through each ? that indicates an optional property and ensuring undefined is accepted. We don't differentiate the two at runtime.

codesandbox-ci[bot] commented 2 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 4abc747efd68ebdf9858be76c6d359027b127720:

Sandbox Source
react-testing-library-examples Configuration