Skip to content

Conversation

@jgheithcock
Copy link
Contributor

Summary

This replaces the prior PR that created mocks for reactBootstrap. My concern was that I didn't want to bundle our own version of react-bootstrap, but Jest couldn't access the external version. @calebroseland pointed out that just putting it into package.json didn't cause it to be bundled, but did mean that the development and test environments could use it. Thanks Caleb!

-Changes the development and test versions of React, ReactDom, and react-test-renderer to the 18.2 version used in mattermost.

  • Swaps out the pre-React 18 version of render to createRoot
  • Fixes some type errors that surface with React 18 and reactBootstrap
  • Removes unneeded and deprecated "@types/react-bootstrap": "1.0.1" in package.json

Ticket Link

N/A

Checklist

  • Gated by experimental feature flag
  • Unit tests updated

-Changes the development and test versions of React, ReactDom, and react-test-renderer to the 18.2 version used in mattermost.
- Swaps out the pre-React 18 version of `render` to `createRoot` and fixes some type errors that surface with React 18.
- Removes unneeded and deprecated "@types/react-bootstrap": "1.0.1" in package.json
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