@@ -2,7 +2,7 @@ import * as sentryCore from '@sentry/core';
22import { Hub } from '@sentry/hub' ;
33import * as sentryHub from '@sentry/hub' ;
44import { SpanStatus , Transaction } from '@sentry/tracing' ;
5- import { Runtime , Transaction as TransactionType } from '@sentry/types' ;
5+ import { Runtime } from '@sentry/types' ;
66import * as http from 'http' ;
77import * as net from 'net' ;
88
@@ -255,7 +255,7 @@ describe('tracingHandler', () => {
255255
256256 it ( 'pulls status code from the response' , done => {
257257 const transaction = new Transaction ( { name : 'mockTransaction' } ) ;
258- jest . spyOn ( sentryCore , 'startTransaction' ) . mockReturnValue ( transaction as TransactionType ) ;
258+ jest . spyOn ( sentryCore , 'startTransaction' ) . mockReturnValue ( transaction as Transaction ) ;
259259 const finishTransaction = jest . spyOn ( transaction , 'finish' ) ;
260260
261261 sentryTracingMiddleware ( req , res , next ) ;
@@ -302,7 +302,7 @@ describe('tracingHandler', () => {
302302
303303 it ( 'closes the transaction when request processing is done' , done => {
304304 const transaction = new Transaction ( { name : 'mockTransaction' } ) ;
305- jest . spyOn ( sentryCore , 'startTransaction' ) . mockReturnValue ( transaction as TransactionType ) ;
305+ jest . spyOn ( sentryCore , 'startTransaction' ) . mockReturnValue ( transaction as Transaction ) ;
306306 const finishTransaction = jest . spyOn ( transaction , 'finish' ) ;
307307
308308 sentryTracingMiddleware ( req , res , next ) ;
@@ -321,7 +321,7 @@ describe('tracingHandler', () => {
321321 description : 'reallyCoolHandler' ,
322322 op : 'middleware' ,
323323 } ) ;
324- jest . spyOn ( sentryCore , 'startTransaction' ) . mockReturnValue ( transaction as TransactionType ) ;
324+ jest . spyOn ( sentryCore , 'startTransaction' ) . mockReturnValue ( transaction as Transaction ) ;
325325 const finishSpan = jest . spyOn ( span , 'finish' ) ;
326326 const finishTransaction = jest . spyOn ( transaction , 'finish' ) ;
327327
0 commit comments