File tree Expand file tree Collapse file tree 3 files changed +559
-14
lines changed
packages/browser/test/e2e Expand file tree Collapse file tree 3 files changed +559
-14
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
- < html lang =" en " dir =" ltr " >
2
+ < html >
3
3
< head >
4
4
< meta charset ="UTF-8 " />
5
- < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6
- < meta http-equiv ="X-UA-Compatible " content ="ie=edge " />
7
- < title > Sample Webpack App</ title >
5
+ < title > </ title >
6
+ < script src ="bundle.js "> </ script >
8
7
</ head >
9
8
< body >
10
9
<!-- For Breadcrumbs Tests -->
11
10
< form id ="foo-form ">
12
11
< input name ="foo " placeholder ="lol " />
13
12
< div class ="contenteditable " contenteditable ="true "> </ div >
14
13
</ form >
15
- < script src ="bundle.js "> </ script >
14
+
15
+ < div class ="c ">
16
+ < div class ="b ">
17
+ < div class ="a "> </ div >
18
+ </ div >
19
+ </ div >
16
20
</ body >
17
21
</ html >
Original file line number Diff line number Diff line change 1
1
const Sentry = require ( '@sentry/browser' ) ;
2
-
2
+ const { normalize } = require ( '@sentry/utils' ) ;
3
3
window . Sentry = Sentry ;
4
4
5
5
Sentry . init ( {
6
6
dsn : 'https://public@dsn.ingest.sentry.io/1337' ,
7
+ integrations : [ new Sentry . Integrations . Dedupe ( ) ] ,
8
+ attachStacktrace : true ,
9
+ denyUrls : [ 'foo.js' ] ,
10
+ beforeBreadcrumb : function ( breadcrumb , breadcrumbHint ) {
11
+ // Remove circular properties from event target
12
+ // Store `breadcrumbHint` inside `breadcrumb` for tests
13
+ if ( breadcrumbHint ) {
14
+ breadcrumb . hint = normalize ( breadcrumbHint ) ;
15
+ }
16
+
17
+ return breadcrumb ;
18
+ } ,
7
19
} ) ;
You can’t perform that action at this time.
0 commit comments