Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add react19 support; tests migrated to rtl#2818

Draft
jd3vi1 wants to merge 3 commits into
master from
SDK-9563
Draft

add react19 support; tests migrated to rtl #2818
jd3vi1 wants to merge 3 commits into
master from
SDK-9563

Conversation

@jd3vi1

@jd3vi1 jd3vi1 commented Jun 17, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Changes

Main object 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)
Internal review doc -> here

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

@@ -1,5 +1,6 @@
import React from 'react';
import { mount } from 'enzyme';
import { render, screen } from '@testing-library/react';
Comment thread src/__tests__/field/captcha/third_party_captcha.test.jsx Dismissed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@github-advanced-security github-advanced-security[bot] github-advanced-security[bot] left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /