@@ -2,7 +2,7 @@ import * as sentryCore from '@sentry/core';
2
2
import { Hub } from '@sentry/hub' ;
3
3
import * as sentryHub from '@sentry/hub' ;
4
4
import { SpanStatus , Transaction } from '@sentry/tracing' ;
5
- import { Runtime , Transaction as TransactionType } from '@sentry/types' ;
5
+ import { Runtime } from '@sentry/types' ;
6
6
import * as http from 'http' ;
7
7
import * as net from 'net' ;
8
8
@@ -255,7 +255,7 @@ describe('tracingHandler', () => {
255
255
256
256
it ( 'pulls status code from the response' , done => {
257
257
const transaction = new Transaction ( { name : 'mockTransaction' } ) ;
258
- jest . spyOn ( sentryCore , 'startTransaction' ) . mockReturnValue ( transaction as TransactionType ) ;
258
+ jest . spyOn ( sentryCore , 'startTransaction' ) . mockReturnValue ( transaction as Transaction ) ;
259
259
const finishTransaction = jest . spyOn ( transaction , 'finish' ) ;
260
260
261
261
sentryTracingMiddleware ( req , res , next ) ;
@@ -302,7 +302,7 @@ describe('tracingHandler', () => {
302
302
303
303
it ( 'closes the transaction when request processing is done' , done => {
304
304
const transaction = new Transaction ( { name : 'mockTransaction' } ) ;
305
- jest . spyOn ( sentryCore , 'startTransaction' ) . mockReturnValue ( transaction as TransactionType ) ;
305
+ jest . spyOn ( sentryCore , 'startTransaction' ) . mockReturnValue ( transaction as Transaction ) ;
306
306
const finishTransaction = jest . spyOn ( transaction , 'finish' ) ;
307
307
308
308
sentryTracingMiddleware ( req , res , next ) ;
@@ -321,7 +321,7 @@ describe('tracingHandler', () => {
321
321
description : 'reallyCoolHandler' ,
322
322
op : 'middleware' ,
323
323
} ) ;
324
- jest . spyOn ( sentryCore , 'startTransaction' ) . mockReturnValue ( transaction as TransactionType ) ;
324
+ jest . spyOn ( sentryCore , 'startTransaction' ) . mockReturnValue ( transaction as Transaction ) ;
325
325
const finishSpan = jest . spyOn ( span , 'finish' ) ;
326
326
const finishTransaction = jest . spyOn ( transaction , 'finish' ) ;
327
327
0 commit comments