Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-3958

Consolidate test helper function like flushPromises or runLastEffect

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 3.1.0
    • None
    • frontend
    • None
    • Not defined

      Over the time, certain patterns have evolved that help us unit test the frontend components. Two examples are the flushPromises function or the runLastEffect mock for react. Right now, every test file that uses those helpers provides their own implementation.

      This results in a lot of duplicated code in the test files. We should instead provide a central implementation of those helper functions.

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              sebastian.stamm Sebastian Stamm
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: