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

Function setupClient

packages/bun/test/integrations/bunserver.test.ts:477–485  ·  view source on GitHub ↗
(dataCollection: DataCollection)

Source from the content-addressed store, hash-verified

475
476 describe('data collection', () => {
477 const setupClient = (dataCollection: DataCollection): void => {
478 init({
479 dsn: 'https://username@domain/123',
480 defaultIntegrations: false,
481 transport: () =>
482 SentryCore.createTransport({ recordDroppedEvent: () => undefined }, () => SentryCore.resolvedSyncPromise({})),
483 dataCollection,
484 });
485 };
486
487 afterEach(() => {
488 SentryCore.getCurrentScope().setClient(undefined);

Callers 1

bunserver.test.tsFile · 0.70

Calls 1

initFunction · 0.90

Tested by

no test coverage detected