Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Remove enzyme which blocks React 18 upgrade #166

Closed
jesperhodge opened this issue May 24, 2023 · 0 comments
Closed

Remove enzyme which blocks React 18 upgrade #166

jesperhodge opened this issue May 24, 2023 · 0 comments

Comments

@jesperhodge
Copy link
Contributor

jesperhodge commented May 24, 2023

Enzyme does not support React 18, and there are no plans from the maintainers or community to support it. (https://dev.to/wojtekmaj/enzyme-is-dead-now-what-ekl) So it is blocking us from ever updating React.

We only use enzyme in 2 places, so it should be extremely easy to replace it.

The cleanest way is to rewrite the tests with react-testing-library.

The probably quicker way, which is just as good, is to follow https://openedx.atlassian.net/wiki/spaces/BPL/pages/3782508545/Replacing+Enzyme+for+React+Shallow+Unit+Testing.

### PRs
- [ ] https://github.com/openedx/frontend-app-library-authoring/pull/397
@jesperhodge jesperhodge changed the title Get rid of enzyme which blocks React 18 upgrade Remove enzyme which blocks React 18 upgrade Jul 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants