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

Migrate custom testHook to RTL renderHook

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • None
    • None
    • OCP Console - Sprint 283

      We have our own testHook from @console/shared/src/test-utils/hooks-utils which is used to test just a hook. This was originally written with enzyme, and was migrated to RTL.

      React testing library has renderHook which does the same thing, we should use it

      AC:

      • Delete packages/console-shared/src/test-utils/hooks-utils.tsx
      • Migrate custom testHook to RTL renderHook

              rh-ee-jaclee Jackson Lee
              rh-ee-jaclee Jackson Lee
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: