File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -16,21 +16,17 @@ addExtensionMethods();
1616
1717const mathRandom = jest . spyOn ( Math , 'random' ) ;
1818jest . spyOn ( Transaction . prototype , 'setMetadata' ) ;
19+ jest . spyOn ( logger , 'warn' ) ;
20+ jest . spyOn ( logger , 'log' ) ;
21+ jest . spyOn ( utilsModule , 'isNodeEnv' ) ;
1922
2023// we have to add things into the real global object (rather than mocking the return value of getGlobalObject) because
2124// there are modules which call getGlobalObject as they load, which is seemingly too early for jest to intervene
2225addDOMPropertiesToGlobal ( [ 'XMLHttpRequest' , 'Event' , 'location' , 'document' ] ) ;
2326
2427describe ( 'Hub' , ( ) => {
25- beforeEach ( ( ) => {
26- jest . spyOn ( logger , 'warn' ) ;
27- jest . spyOn ( logger , 'log' ) ;
28- jest . spyOn ( utilsModule , 'isNodeEnv' ) ;
29- } ) ;
30-
3128 afterEach ( ( ) => {
3229 jest . clearAllMocks ( ) ;
33- jest . useRealTimers ( ) ;
3430 } ) ;
3531
3632 describe ( 'getTransaction()' , ( ) => {
You can’t perform that action at this time.
0 commit comments