|
1 | | -import { BrowserTracing, SDK_VERSION, init } from '@sentry/react'; |
| 1 | +import { SDK_VERSION, browserTracingIntegration, init } from '@sentry/react'; |
2 | 2 | import type { Integration } from '@sentry/types'; |
3 | 3 |
|
4 | 4 | import { init as gatsbyInit } from '../src/sdk'; |
@@ -68,27 +68,27 @@ describe('Integrations from options', () => { |
68 | 68 | [ |
69 | 69 | 'tracing disabled, with BrowserTracing as an array', |
70 | 70 | [], |
71 | | - { integrations: [new BrowserTracing()] }, |
| 71 | + { integrations: [browserTracingIntegration()] }, |
72 | 72 | ['BrowserTracing'], |
73 | 73 | ], |
74 | 74 | [ |
75 | 75 | 'tracing disabled, with BrowserTracing as a function', |
76 | 76 | [], |
77 | 77 | { |
78 | | - integrations: () => [new BrowserTracing()], |
| 78 | + integrations: () => [browserTracingIntegration()], |
79 | 79 | }, |
80 | 80 | ['BrowserTracing'], |
81 | 81 | ], |
82 | 82 | [ |
83 | 83 | 'tracing enabled, with BrowserTracing as an array', |
84 | 84 | [], |
85 | | - { tracesSampleRate: 1, integrations: [new BrowserTracing()] }, |
| 85 | + { tracesSampleRate: 1, integrations: [browserTracingIntegration()] }, |
86 | 86 | ['BrowserTracing'], |
87 | 87 | ], |
88 | 88 | [ |
89 | 89 | 'tracing enabled, with BrowserTracing as a function', |
90 | 90 | [], |
91 | | - { tracesSampleRate: 1, integrations: () => [new BrowserTracing()] }, |
| 91 | + { tracesSampleRate: 1, integrations: () => [browserTracingIntegration()] }, |
92 | 92 | ['BrowserTracing'], |
93 | 93 | ], |
94 | 94 | ] as TestArgs[])( |
|
0 commit comments