import { request } from "http" ; export const getRequestFromCalledMockFetch = ( mockFetch ) => { const [ requestInfo , requestInit ] = mockFetch . mock . calls [ 0 ] ; mockFetch . mockReset ( ) ; return new Request ( requestInfo , requestInit ) ; } ; describe ( "the universe" , ( ) => { it ( "works" , ( ) => { expect ( 2 + 2 ) . toBe ( 4 ) ; } ) ; } ) ;