Skip to content

Clean up event hub after each spec

Paul Slaughter requested to merge fe-clean-up-event-hub-memory-leaks into master

What does this MR do?

There was a Jest memory leak identified in !33588 (merged). This MR attempts to clean this up by adding an adapter to mitt and removing old event listeners after each spec.

Screenshots

node --expose-gc ./node_modules/.bin/jest --runInBand --logHeapUsage

Screen_Shot_2020-06-05_at_10.24.42_AM

Before, this would just grow and grow and grow and grow 😬

Merge request reports