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

Function findIntegrationByName

packages/nextjs/test/serverSdk.test.ts:14–16  ·  view source on GitHub ↗
(integrations: Integration[] = [], name: string)

Source from the content-addressed store, hash-verified

12const nodeInit = vi.spyOn(SentryNode, 'init');
13
14function findIntegrationByName(integrations: Integration[] = [], name: string): Integration | undefined {
15 return integrations.find(integration => integration.name === name);
16}
17
18describe('Server init()', () => {
19 afterEach(() => {

Callers 1

serverSdk.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected