@@ -9,16 +9,16 @@ import {
9
9
} from '@sentry/core' ;
10
10
import type { EventEnvelopeHeaders , Span } from '@sentry/core' ;
11
11
import { NodeClient , setCurrentClient } from '@sentry/node' ;
12
- import * as SentryNode from '@sentry/node ' ;
12
+ import * as SentryCore from '@sentry/core ' ;
13
13
import type { Handle } from '@sveltejs/kit' ;
14
14
import { redirect } from '@sveltejs/kit' ;
15
15
import { vi } from 'vitest' ;
16
16
17
17
import { FETCH_PROXY_SCRIPT , addSentryCodeToPage } from '../../src/server-common/handle' ;
18
- import { sentryHandle } from '../../src/server/handle' ;
18
+ import { sentryHandle } from '../../src/server-common /handle' ;
19
19
import { getDefaultNodeClientOptions } from '../utils' ;
20
20
21
- const mockCaptureException = vi . spyOn ( SentryNode , 'captureException' ) . mockImplementation ( ( ) => 'xx' ) ;
21
+ const mockCaptureException = vi . spyOn ( SentryCore , 'captureException' ) . mockImplementation ( ( ) => 'xx' ) ;
22
22
23
23
function mockEvent ( override : Record < string , unknown > = { } ) : Parameters < Handle > [ 0 ] [ 'event' ] {
24
24
const event : Parameters < Handle > [ 0 ] [ 'event' ] = {
@@ -442,7 +442,7 @@ describe('addSentryCodeToPage', () => {
442
442
443
443
it ( 'adds meta tags and the fetch proxy script if there is an active transaction' , ( ) => {
444
444
const transformPageChunk = addSentryCodeToPage ( { } ) ;
445
- SentryNode . startSpan ( { name : 'test' } , ( ) => {
445
+ SentryCore . startSpan ( { name : 'test' } , ( ) => {
446
446
const transformed = transformPageChunk ( { html, done : true } ) as string ;
447
447
448
448
expect ( transformed ) . toContain ( '<meta name="sentry-trace"' ) ;
@@ -454,7 +454,7 @@ describe('addSentryCodeToPage', () => {
454
454
455
455
it ( 'adds a nonce attribute to the script if the `fetchProxyScriptNonce` option is specified' , ( ) => {
456
456
const transformPageChunk = addSentryCodeToPage ( { fetchProxyScriptNonce : '123abc' } ) ;
457
- SentryNode . startSpan ( { name : 'test' } , ( ) => {
457
+ SentryCore . startSpan ( { name : 'test' } , ( ) => {
458
458
const transformed = transformPageChunk ( { html, done : true } ) as string ;
459
459
460
460
expect ( transformed ) . toContain ( '<meta name="sentry-trace"' ) ;
0 commit comments