Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-5240

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

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 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 Unassigned
            Reporter:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: