File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
packages/nextjs/test/utils Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ describe('applyTunnelRouteOption()', () => {
34
34
} ) ;
35
35
36
36
it ( "Doesn't apply `tunnelRoute` when DSN is invalid" , ( ) => {
37
+ // Avoid polluting the test output with error messages
38
+ const mockConsoleError = jest . spyOn ( console , 'error' ) . mockImplementation ( ( ) => { } ) ;
39
+
37
40
globalWithInjectedValues . _sentryRewritesTunnelPath = '/my-error-monitoring-route' ;
38
41
const options : any = {
39
42
dsn : 'invalidDsn' ,
@@ -42,6 +45,8 @@ describe('applyTunnelRouteOption()', () => {
42
45
applyTunnelRouteOption ( options ) ;
43
46
44
47
expect ( options . tunnel ) . toBeUndefined ( ) ;
48
+
49
+ mockConsoleError . mockRestore ( ) ;
45
50
} ) ;
46
51
47
52
it ( "Doesn't apply `tunnelRoute` option when `tunnelRoute` option wasn't injected" , ( ) => {
You can’t perform that action at this time.
0 commit comments