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

Consolidate test helper function like flushPromises or runLastEffect

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: frontend
    • Labels:
      None
    • Epic Link:
    • Effort:
      Not defined

      Description

      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.

        mgm-controller-panel

        This is the controller panel for Smart Panels app

          Attachments

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Salesforce