File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -107,8 +107,12 @@ describe('Hub', () => {
107
107
active : { members : [ mockRequestObject , mockResponseObject ] } ,
108
108
} ;
109
109
110
+ // Ideally we'd use a NodeClient here, but @sentry/tracing can't depend on @sentry/node since the reverse is
111
+ // already true (node's request handlers start their own transactions) - even as a dev dependency. Fortunately,
112
+ // we're not relying on anything other than the client having a captureEvent method, which all clients do (it's
113
+ // in the abstract base class), so a BrowserClient will do.
110
114
const tracesSampler = jest . fn ( ) ;
111
- const hub = new Hub ( new NodeClient ( { tracesSampler } ) ) ;
115
+ const hub = new Hub ( new BrowserClient ( { tracesSampler } ) ) ;
112
116
hub . startTransaction ( { name : 'dogpark' } ) ;
113
117
114
118
// post-normalization request object
You can’t perform that action at this time.
0 commit comments