Consolidate test helper function like flushPromises or runLastEffect

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: L3 - Default
    • 3.1.0
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: