From 6d83428587a408319a5e9f5006f3adf1ff711b7a Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Mon, 30 Oct 2023 15:29:24 +0100 Subject: [PATCH] fixes --- scripts/release/__tests__/ensure-next-ahead.test.ts | 2 +- scripts/release/__tests__/label-patches.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/release/__tests__/ensure-next-ahead.test.ts b/scripts/release/__tests__/ensure-next-ahead.test.ts index 5d3ac95e2c1f..d9950ad0390e 100644 --- a/scripts/release/__tests__/ensure-next-ahead.test.ts +++ b/scripts/release/__tests__/ensure-next-ahead.test.ts @@ -6,7 +6,7 @@ import * as gitClient_ from '../utils/git-client'; import * as bumpVersion_ from '../version'; jest.mock('../utils/git-client', () => jest.requireActual('jest-mock-extended').mockDeep()); -const gitClient = jest.mocked(gitClient_, true); +const gitClient = jest.mocked(gitClient_, { shallow: false }); // eslint-disable-next-line jest/no-mocks-import jest.mock('fs-extra', () => require('../../../code/__mocks__/fs-extra')); diff --git a/scripts/release/__tests__/label-patches.test.ts b/scripts/release/__tests__/label-patches.test.ts index ae5b7e8c6a4c..f75549fef7cd 100644 --- a/scripts/release/__tests__/label-patches.test.ts +++ b/scripts/release/__tests__/label-patches.test.ts @@ -10,7 +10,7 @@ jest.mock('../utils/get-github-info'); jest.mock('../utils/github-client'); jest.mock('../utils/git-client', () => jest.requireActual('jest-mock-extended').mockDeep()); -const gitClient = jest.mocked(gitClient_, true); +const gitClient = jest.mocked(gitClient_, { shallow: false }); const github = jest.mocked(github_); const githubInfo = jest.mocked(githubInfo_);