2020-07-27 23:48:55 +00:00
|
|
|
// eslint-disable-next-line filenames/match-exported
|
|
|
|
const git = jest.requireActual('isomorphic-git');
|
|
|
|
const mock = jest.genMockFromModule('isomorphic-git');
|
|
|
|
|
2021-05-12 06:35:00 +00:00
|
|
|
// @ts-expect-error -- TSCONVERSION
|
2020-07-27 23:48:55 +00:00
|
|
|
git.push = mock.push;
|
2021-05-12 06:35:00 +00:00
|
|
|
|
|
|
|
// @ts-expect-error -- TSCONVERSION
|
2021-04-05 15:50:55 +00:00
|
|
|
git.clone = mock.clone;
|
2021-05-12 06:35:00 +00:00
|
|
|
|
|
|
|
// WARNING: changing this to `export default` will break the mock and be incredibly hard to debug. Ask me how I know.
|
2020-07-27 23:48:55 +00:00
|
|
|
module.exports = git;
|