insomnia/packages/insomnia-app/app/common/__mocks__/render.ts
Dimitri Mitropoulos 5f4c19da35
[TypeScript] Phase 1 & 2 (#3370)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-12 18:35:00 +12:00

7 lines
289 B
TypeScript

const _render = jest.requireActual('../render');
_render.getRenderedGrpcRequest = jest.fn();
_render.getRenderedGrpcRequestMessage = jest.fn();
// WARNING: changing this to `export default` will break the mock and be incredibly hard to debug. Ask me how I know.
module.exports = _render;