MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / fetch

Function fetch

packages/bun/test/integrations/bunserver.test.ts:36–38  ·  view source on GitHub ↗
(_req)

Source from the content-addressed store, hash-verified

34 test('generates a transaction around a request', async () => {
35 const server = Bun.serve({
36 async fetch(_req) {
37 return new Response('Bun!', { headers: new Headers({ 'x-custom': 'value' }) });
38 },
39 port,
40 });
41 await fetch(`http://localhost:${port}/users?id=123`);

Callers 2

bunserver.test.tsFile · 0.70
makeRequestFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected