@@ -9,16 +9,16 @@ import {
99} from '@sentry/core' ;
1010import type { EventEnvelopeHeaders , Span } from '@sentry/core' ;
1111import { NodeClient , setCurrentClient } from '@sentry/node' ;
12- import * as SentryNode from '@sentry/node ' ;
12+ import * as SentryCore from '@sentry/core ' ;
1313import type { Handle } from '@sveltejs/kit' ;
1414import { redirect } from '@sveltejs/kit' ;
1515import { vi } from 'vitest' ;
1616
1717import { FETCH_PROXY_SCRIPT , addSentryCodeToPage } from '../../src/server-common/handle' ;
18- import { sentryHandle } from '../../src/server/handle' ;
18+ import { sentryHandle } from '../../src/server-common /handle' ;
1919import { getDefaultNodeClientOptions } from '../utils' ;
2020
21- const mockCaptureException = vi . spyOn ( SentryNode , 'captureException' ) . mockImplementation ( ( ) => 'xx' ) ;
21+ const mockCaptureException = vi . spyOn ( SentryCore , 'captureException' ) . mockImplementation ( ( ) => 'xx' ) ;
2222
2323function mockEvent ( override : Record < string , unknown > = { } ) : Parameters < Handle > [ 0 ] [ 'event' ] {
2424 const event : Parameters < Handle > [ 0 ] [ 'event' ] = {
@@ -442,7 +442,7 @@ describe('addSentryCodeToPage', () => {
442442
443443 it ( 'adds meta tags and the fetch proxy script if there is an active transaction' , ( ) => {
444444 const transformPageChunk = addSentryCodeToPage ( { } ) ;
445- SentryNode . startSpan ( { name : 'test' } , ( ) => {
445+ SentryCore . startSpan ( { name : 'test' } , ( ) => {
446446 const transformed = transformPageChunk ( { html, done : true } ) as string ;
447447
448448 expect ( transformed ) . toContain ( '<meta name="sentry-trace"' ) ;
@@ -454,7 +454,7 @@ describe('addSentryCodeToPage', () => {
454454
455455 it ( 'adds a nonce attribute to the script if the `fetchProxyScriptNonce` option is specified' , ( ) => {
456456 const transformPageChunk = addSentryCodeToPage ( { fetchProxyScriptNonce : '123abc' } ) ;
457- SentryNode . startSpan ( { name : 'test' } , ( ) => {
457+ SentryCore . startSpan ( { name : 'test' } , ( ) => {
458458 const transformed = transformPageChunk ( { html, done : true } ) as string ;
459459
460460 expect ( transformed ) . toContain ( '<meta name="sentry-trace"' ) ;
0 commit comments