test: clear mocks

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2023-01-24 00:44:31 +01:00
parent 251b9d49f3
commit 66653922b3
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
7 changed files with 35 additions and 7 deletions

View file

@ -1,6 +1,10 @@
import {describe, expect, it} from '@jest/globals';
import {beforeEach, describe, expect, it, jest} from '@jest/globals';
import * as git from '../src/git';
beforeEach(() => {
jest.clearAllMocks();
});
describe('git', () => {
it('returns git remote ref', async () => {
const ref: string = await git.getRemoteSha('https://github.com/docker/buildx.git', 'refs/pull/648/head');