Skip to content

Commit

Permalink
test(logger): Fix mock for withMeta function (#33979)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov authored Jan 31, 2025
1 parent 732f91b commit 0300c4e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ jest.mock('../lib/modules/platform/scm', () => ({
scm: mockDeep<PlatformScm>(),
}));

jest.mock('../lib/logger', () => mockDeep());
jest.mock('../lib/logger', () => {
return mockDeep({
withMeta: <T>(_: Record<string, unknown>, cb: () => T): T => cb(),
});
});

0 comments on commit 0300c4e

Please sign in to comment.