import '@testing-library/jest-dom/extend-expect' ; jest . mock ( '@proton/components/hooks/useEventManager.ts' , ( ) => { const subscribe = jest . fn ( ) ; const call = jest . fn ( ) ; const stop = jest . fn ( ) ; const start = jest . fn ( ) ; const result = ( ) => { return { subscribe , call , stop , start } ; } ; result . subscribe = subscribe ; result . call = call ; result . stop = stop ; result . start = start ; return result ; } ) ; global . MutationObserver = class { disconnect ( ) { } observe ( ) { } } ;