File tree Expand file tree Collapse file tree 3 files changed +13
-14
lines changed
dev-packages/e2e-tests/test-applications
packages/ember/tests/unit Expand file tree Collapse file tree 3 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ Sentry.init({
1010 tracesSampleRate : 1 ,
1111 replaysSessionSampleRate : 1 ,
1212 replaysOnErrorSampleRate : 1 ,
13+ browserTracingOptions : {
14+ _experiments : {
15+ // Long-task spans are noisy in e2e and make assertions flaky.
16+ enableLongTask : false ,
17+ } ,
18+ } ,
1319 tracePropagationTargets : [ 'localhost' , 'doesntexist.example' ] ,
1420 tunnel : `http://localhost:3031/` , // proxy server
1521} ) ;
Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ Sentry.init({
99 tracesSampleRate : 1 ,
1010 replaysSessionSampleRate : 1 ,
1111 replaysOnErrorSampleRate : 1 ,
12+ browserTracingOptions : {
13+ _experiments : {
14+ // Long-task spans are noisy in e2e and make assertions flaky.
15+ enableLongTask : false ,
16+ } ,
17+ } ,
1218 tracePropagationTargets : [ 'localhost' , 'doesntexist.example' ] ,
1319 tunnel : `http://localhost:3031/` , // proxy server
1420} ) ;
Original file line number Diff line number Diff line change 11import { setupTest } from 'ember-qunit' ;
22import { module , test } from 'qunit' ;
33import { setupSentryTest } from '../helpers/setup-sentry.ts' ;
4+ import { getLocationURL } from '../../src/utils/ember/router.ts' ;
45
56import type { SentryTestContext } from '../helpers/setup-sentry.ts' ;
67
@@ -11,20 +12,6 @@ interface Location {
1112 rootURL : string ;
1213}
1314
14- function getLocationURL ( location : Location ) : string {
15- if ( ! location ?. getURL || ! location ?. formatURL ) {
16- return '' ;
17- }
18-
19- const url = location . formatURL ( location . getURL ( ) ) ;
20-
21- if ( location . implementation === 'hash' || url . startsWith ( '#' ) ) {
22- return `${ location . rootURL } ${ url } ` ;
23- }
24-
25- return url ;
26- }
27-
2815module ( 'Unit | Utility | instrument-router-location' , function ( hooks ) {
2916 setupTest ( hooks ) ;
3017 setupSentryTest ( hooks ) ;
You can’t perform that action at this time.
0 commit comments