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

Consolidate test helper function like flushPromises or runLastEffect

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • L3 - Default
    • 3.1.0
    • None
    • frontend
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce