import '@testing-library/jest-dom' ; import { init } from 'pmcrypto/lib/pmcrypto' ; import * as openpgp from 'openpgp' ; init ( openpgp ) ; 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 ; } ) ; jest . mock ( './src/app/helpers/upload' ) ; global . MutationObserver = class { disconnect ( ) { } observe ( ) { } } ; jest . mock ( '@proton/components/components/modalTwo/BackdropContainer' , ( ) => ( { __esModule : true , default : ( ) => null , } ) ) ;