Skip to content

Commit

Permalink
test(logger): Fix mock for withMeta function
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Jan 31, 2025
1 parent 732f91b commit bce2320
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 bce2320

Please sign in to comment.