ucfopen / Obojobo

Next generation course content for your LMS. Easy for beginners, but powerful enough for researchers.
https://ucfopen.github.io/Obojobo-Docs/
GNU Affero General Public License v3.0
70 stars 34 forks source link

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

Open FrenjaminBanklin opened 1 year ago

FrenjaminBanklin commented 1 year ago

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.