Skip to content

Commit 6b25bb0

Browse files
committed
add __DEBUG_BUILD__ mock
1 parent de68527 commit 6b25bb0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/cloudflare/test/integrations/hono.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class FakeClient extends CloudflareClient {
1212

1313
vi.mock('../../src/debug-build', () => ({
1414
DEBUG_BUILD: true,
15+
__DEBUG_BUILD__: true,
1516
}));
1617

1718
type MockHonoIntegrationType = { handleHonoException: (err: Error) => void };
@@ -27,6 +28,7 @@ describe('Hono integration', () => {
2728
transport: () => ({ send: () => Promise.resolve({}), flush: () => Promise.resolve(true) }),
2829
stackParser: createStackParser(),
2930
});
31+
3032
vi.spyOn(sentryCore, 'getClient').mockImplementation(() => client as Client);
3133
});
3234

0 commit comments

Comments
 (0)