Uploaded image for project: 'OpenShift Console'
  1. OpenShift Console
  2. CONSOLE-4526

Investigate migration away from Enzyme to React Testing Library

XMLWordPrintable

    • Icon: Spike Spike
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • openshift-4.19, openshift-4.20
    • Tests
    • None
    • OCP Console - Sprint 271

      Enzyme has lost support in React 17+. As a part of the React 18 upgrade, we need to transition our test suite away from Enzyme and towards react-testing-library.

      As a part of the spike, we should figure out:

      • How much effort will it take to rewrite all enzyme tests? How many tests are affected?
      • Is the Jest upgrade a prerequisite for this process?
      • How can we prevent further Enzyme tests from being written in the meantime?

      Extra reading: https://dev.to/wojtekmaj/enzyme-is-dead-now-what-ekl

       

      Acceptance Criteria

      • A comprehensive audit list of Enzyme tests and their complexity levels.
      • Documentation of any identified challenges and suggested solutions.
      • Proposed API for shared RTL test utilities.
      • A step-by-step migration roadmap for items in the audit list.

              cajieh Cyril Ajieh
              rh-ee-jaclee Jackson Lee
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: