Skip to content

Replace all usage of Enzyme in tests with React Test Renderer. #2118

@FrenjaminBanklin

Description

@FrenjaminBanklin

Popular opinion seems to be that Enzyme is not going to continue being developed and that support for any version of React past 17 will be impossible.

Most of Obojobo's tests are luckily already using React Test Renderer, but some of them are using Enzyme. Those will have to be rewritten to use RTR instead.

Popular opinion also seems to be that React Testing Library is the de facto library for testing React, but it would likely require significant changes to every test to migrate to that. Prefer RTR for now.

Metadata

Metadata

Assignees

Labels

choreMaintain a clean and strong character.testing

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions