Skip to content

fix: add react19 support, tests migrated to rtl#2818

Merged
jd3vi1 merged 5 commits into
masterfrom
SDK-9563
Jun 30, 2026
Merged

fix: add react19 support, tests migrated to rtl#2818
jd3vi1 merged 5 commits into
masterfrom
SDK-9563

Conversation

@jd3vi1

@jd3vi1 jd3vi1 commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Changes

Main objective is to make auth0/lock compatible with react v19.

Primary change is to widen the react version in package.json to now support ^18.2.0 || ^19.0.0, this is being done to fix the issue where users are not able to run auth0/lock in react apps using v19 (Issue 2739).

Other changes made are for upgrading the test suite to use react-testing-library in all the test files.
We had to migrate from enzyme to react-testing-library, since enzyme is not compatible with react 19 and there is no reliable adapter available as well.

References

The issue in question is here -> (Issue 2739)

Testing

Tested the new build in a sample-react app using vite as a bundler and all the green flows are working. Used it through both CDN and npm locally.

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of the platform/language

Checklist

Comment thread src/__tests__/auth_button.test.jsx Fixed
Comment thread src/__tests__/field/captcha/third_party_captcha.test.jsx Fixed
@jd3vi1 jd3vi1 changed the title add react19 support; tests migrated to rtl fix: add react19 support; tests migrated to rtl Jun 19, 2026
@jd3vi1 jd3vi1 changed the title fix: add react19 support; tests migrated to rtl fix: add react19 support, tests migrated to rtl Jun 19, 2026
@jd3vi1 jd3vi1 marked this pull request as ready for review June 19, 2026 11:45
@jd3vi1 jd3vi1 requested a review from a team as a code owner June 19, 2026 11:45
Comment thread src/__tests__/field/captcha/third_party_captcha.test.jsx Outdated
@jd3vi1 jd3vi1 linked an issue Jun 25, 2026 that may be closed by this pull request
4 tasks
@jd3vi1 jd3vi1 force-pushed the SDK-9563 branch 2 times, most recently from 7e5237e to 696cd80 Compare June 30, 2026 04:23
@jd3vi1 jd3vi1 merged commit 99e99ce into master Jun 30, 2026
5 checks passed
@jd3vi1 jd3vi1 deleted the SDK-9563 branch June 30, 2026 05:51
@jd3vi1 jd3vi1 mentioned this pull request Jun 30, 2026
jd3vi1 added a commit that referenced this pull request Jun 30, 2026
**Added**
- fix: add react19 support
[\#2818](#2818)
([jd3vi1](https://github.com/jd3vi1))
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.

Auth0-lock 14.2.4 Is not compatible with the React and React-dom 19.2.4

3 participants