We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent beb2a47 commit ae79d46Copy full SHA for ae79d46
backend/src/__tests__/auto-topup.test.ts
@@ -24,6 +24,17 @@ describe('Auto Top-up System', () => {
24
let grantCreditsMock: ReturnType<typeof mock>
25
26
beforeEach(() => {
27
+ // Mock logger for auto-topup functionality
28
+ mockModule('@codebuff/common/util/logger', () => ({
29
+ logger: {
30
+ debug: () => {},
31
+ error: () => {},
32
+ info: () => {},
33
+ warn: () => {},
34
+ },
35
+ withLoggerContext: async (context: any, fn: () => Promise<any>) => fn(),
36
+ }))
37
+
38
// Set up default mocks
39
dbMock = mock(() =>
40
Promise.resolve({
0 commit comments