File tree Expand file tree Collapse file tree 3 files changed +15
-9
lines changed
browser-integration-tests/suites/public-api/instrumentation/setTimeoutFrozen Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
77sentryTest (
88 'Instrumentation does not fail when using frozen callback for setTimeout' ,
99 async ( { getLocalTestPath, page } ) => {
10+ const bundleKey = process . env . PW_BUNDLE || '' ;
11+ const hasDebug = ! bundleKey . includes ( '_min' ) ;
12+
1013 const url = await getLocalTestPath ( { testDir : __dirname } ) ;
1114
1215 const logMessages : string [ ] = [ ] ;
@@ -32,11 +35,13 @@ sentryTest(
3235 } ) ;
3336
3437 expect ( logMessages ) . toEqual (
35- expect . arrayContaining ( [
36- expect . stringContaining (
37- 'Sentry Logger [log]: Failed to add non-enumerable property "__sentry_wrapped__" to object function callback()' ,
38- ) ,
39- ] ) ,
38+ hasDebug
39+ ? expect . arrayContaining ( [
40+ expect . stringContaining (
41+ 'Sentry Logger [log]: Failed to add non-enumerable property "__sentry_wrapped__" to object function callback()' ,
42+ ) ,
43+ ] )
44+ : [ ] ,
4045 ) ;
4146 } ,
4247) ;
Original file line number Diff line number Diff line change 11import { getReportDialogEndpoint , SDK_VERSION } from '@sentry/core' ;
2- import { WrappedFunction } from '@sentry/types' ;
2+ import type { WrappedFunction } from '@sentry/types' ;
33import * as utils from '@sentry/utils' ;
44
55import type { Event } from '../../src' ;
Original file line number Diff line number Diff line change 22 * @jest -environment jsdom
33 */
44
5- import { WrappedFunction } from '@sentry/types' ;
5+ import type { WrappedFunction } from '@sentry/types' ;
6+
67import {
8+ addNonEnumerableProperty ,
79 dropUndefinedKeys ,
810 extractExceptionKeysForMessage ,
911 fill ,
12+ markFunctionWrapped ,
1013 objectify ,
1114 urlEncode ,
12- addNonEnumerableProperty ,
13- markFunctionWrapped ,
1415} from '../src/object' ;
1516import { testOnlyIfNodeVersionAtLeast } from './testutils' ;
1617
You can’t perform that action at this time.
0 commit comments