Skip to content

fix: Stop using nullish coalescing#1299

Merged
eps1lon merged 1 commit intotesting-library:mainfrom
eps1lon:fix-syntax
Apr 11, 2024
Merged

fix: Stop using nullish coalescing#1299
eps1lon merged 1 commit intotesting-library:mainfrom
eps1lon:fix-syntax

Conversation

@eps1lon
Copy link
Copy Markdown
Member

@eps1lon eps1lon commented Apr 11, 2024

It's not supported by some older bundlers and we don't need to use the syntax to begin with (really). Will backport to 14.x since the latest 14.x was only out for 2 days.

@codesandbox-ci
Copy link
Copy Markdown

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 e165e44:

Sandbox Source
react-testing-library-examples Configuration

@eps1lon eps1lon merged commit 1645d21 into testing-library:main Apr 11, 2024
@eps1lon eps1lon deleted the fix-syntax branch April 11, 2024 17:03
eps1lon added a commit to eps1lon/react-testing-library that referenced this pull request Apr 11, 2024
izzieSD pushed a commit to Izzie132/legit that referenced this pull request Feb 19, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@testing-library/react](https://github.com/testing-library/react-testing-library) | devDependencies | major | [`^14.1.2` -> `^15.0.0`](https://renovatebot.com/diffs/npm/@testing-library%2freact/14.2.1/15.0.5) |

---

### Release Notes

<details>
<summary>testing-library/react-testing-library (@&#8203;testing-library/react)</summary>

### [`v15.0.5`](https://github.com/testing-library/react-testing-library/releases/tag/v15.0.5)

[Compare Source](testing-library/react-testing-library@v15.0.4...v15.0.5)

##### Bug Fixes

-   Stop restricting `container` option based on `hydrate` ([#&#8203;1313](testing-library/react-testing-library#1313)) ([d143f46](testing-library/react-testing-library@d143f46))

### [`v15.0.4`](https://github.com/testing-library/react-testing-library/releases/tag/v15.0.4)

[Compare Source](testing-library/react-testing-library@v15.0.3...v15.0.4)

##### Bug Fixes

-   Ensure `renderHook` options extend options for `render` ([#&#8203;1308](testing-library/react-testing-library#1308)) ([48282c2](testing-library/react-testing-library@48282c2))

### [`v15.0.3`](https://github.com/testing-library/react-testing-library/releases/tag/v15.0.3)

[Compare Source](testing-library/react-testing-library@v15.0.2...v15.0.3)

##### Bug Fixes

-   Don't raise TypeScript errors when hydating `document` ([#&#8203;1304](testing-library/react-testing-library#1304)) ([067d0c6](testing-library/react-testing-library@067d0c6))

### [`v15.0.2`](https://github.com/testing-library/react-testing-library/releases/tag/v15.0.2)

[Compare Source](testing-library/react-testing-library@v15.0.1...v15.0.2)

##### Bug Fixes

-   Improve `legacyRoot` error message ([#&#8203;1301](testing-library/react-testing-library#1301)) ([c63b873](testing-library/react-testing-library@c63b873))

### [`v15.0.1`](https://github.com/testing-library/react-testing-library/releases/tag/v15.0.1)

[Compare Source](testing-library/react-testing-library@v15.0.0...v15.0.1)

##### Bug Fixes

-   Stop using nullish coalescing ([#&#8203;1299](testing-library/react-testing-library#1299)) ([1645d21](testing-library/react-testing-library@1645d21))

### [`v15.0.0`](https://github.com/testing-library/react-testing-library/releases/tag/v15.0.0)

[Compare Source](testing-library/react-testing-library@v14.3.1...v15.0.0)

##### Relea...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants