mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
5f4c19da35
Co-authored-by: Opender Singh <opender.singh@konghq.com>
13 lines
419 B
TypeScript
13 lines
419 B
TypeScript
// eslint-disable-next-line filenames/match-exported
|
|
const git = jest.requireActual('isomorphic-git');
|
|
const mock = jest.genMockFromModule('isomorphic-git');
|
|
|
|
// @ts-expect-error -- TSCONVERSION
|
|
git.push = mock.push;
|
|
|
|
// @ts-expect-error -- TSCONVERSION
|
|
git.clone = mock.clone;
|
|
|
|
// WARNING: changing this to `export default` will break the mock and be incredibly hard to debug. Ask me how I know.
|
|
module.exports = git;
|