Call @testing-library/react's cleanup() in a global mocha afterEach loop

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Fix
    • Priority: Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: Tech debt, Testing
    • None
    • Not Needed

      See https://github.com/mongodb-js/compass/pull/2554#discussion_r740182035

       

      Tried to do the obvious, but couldn't get it to work so now we need

       

       

       

      afterEach(() => {
        cleanup();
      });
      

       

       

      everywhere we use react testing library if we want test-watch to work.

            Assignee:
            Unassigned
            Reporter:
            Le Roux Bodenstein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: