This is the code that i have to mock in testing
import * as jwtDecode from 'jwt-decode';
const reg: string = jwtDecode<ITokenDTO>(token)['jti'];
and i am going to use this reg as const result = await thirdpartylib.some_method(getToken(reg));
and this is what i have written so far jest.mock('jwt-decode', () => () => ({}))
but i am not sure whether its right or wrong,
can someone correct it if it is wrong or give the confirmation if it is right.