@@ -32,6 +32,19 @@ const eventWithThirdAndFirstPartyFrames: Event = {
3232              function : 'function' , 
3333              lineno : 2 , 
3434            } , 
35+             // The following frames are native/built-in frames which should be ignored by the integration 
36+             { 
37+               function : 'Array.forEach' , 
38+               filename : '<anonymous>' , 
39+               abs_path : '<anonymous>' , 
40+               in_app : true , 
41+             } , 
42+             { 
43+               function : 'async Promise.all' , 
44+               filename : 'index 1' , 
45+               abs_path : 'index 1' , 
46+               in_app : true , 
47+             } , 
3548          ] , 
3649        } , 
3750        type : 'SyntaxError' , 
@@ -51,14 +64,25 @@ const eventWithOnlyFirstPartyFrames: Event = {
5164              colno : 1 , 
5265              filename : __filename , 
5366              function : 'function' , 
54-               lineno : 1 , 
5567            } , 
5668            { 
57-               colno : 2 , 
5869              filename : __filename , 
5970              function : 'function' , 
6071              lineno : 2 , 
6172            } , 
73+             // The following frames are native/built-in frames which should be ignored by the integration 
74+             { 
75+               function : 'Array.forEach' , 
76+               filename : '<anonymous>' , 
77+               abs_path : '<anonymous>' , 
78+               in_app : true , 
79+             } , 
80+             { 
81+               function : 'async Promise.all' , 
82+               filename : 'index 1' , 
83+               abs_path : 'index 1' , 
84+               in_app : true , 
85+             } , 
6286          ] , 
6387        } , 
6488        type : 'SyntaxError' , 
@@ -86,6 +110,19 @@ const eventWithOnlyThirdPartyFrames: Event = {
86110              function : 'function' , 
87111              lineno : 2 , 
88112            } , 
113+             // The following frames are native/built-in frames which should be ignored by the integration 
114+             { 
115+               function : 'Array.forEach' , 
116+               filename : '<anonymous>' , 
117+               abs_path : '<anonymous>' , 
118+               in_app : true , 
119+             } , 
120+             { 
121+               function : 'async Promise.all' , 
122+               filename : 'index 1' , 
123+               abs_path : 'index 1' , 
124+               in_app : true , 
125+             } , 
89126          ] , 
90127        } , 
91128        type : 'SyntaxError' , 
@@ -112,7 +149,7 @@ describe('ThirdPartyErrorFilter', () => {
112149  } ) ; 
113150
114151  describe ( 'drop-error-if-contains-third-party-frames' ,  ( )  =>  { 
115-     it ( 'should keep  event if there are exclusively first-party frames' ,  async  ( )  =>  { 
152+     it ( 'keeps  event if there are exclusively first-party frames' ,  async  ( )  =>  { 
116153      const  integration  =  thirdPartyErrorFilterIntegration ( { 
117154        behaviour : 'drop-error-if-contains-third-party-frames' , 
118155        filterKeys : [ 'some-key' ] , 
@@ -123,7 +160,7 @@ describe('ThirdPartyErrorFilter', () => {
123160      expect ( result ) . toBeDefined ( ) ; 
124161    } ) ; 
125162
126-     it ( 'should drop  event if there is at least one third-party frame' ,  async  ( )  =>  { 
163+     it ( 'drops  event if there is at least one third-party frame' ,  async  ( )  =>  { 
127164      const  integration  =  thirdPartyErrorFilterIntegration ( { 
128165        behaviour : 'drop-error-if-contains-third-party-frames' , 
129166        filterKeys : [ 'some-key' ] , 
@@ -134,7 +171,7 @@ describe('ThirdPartyErrorFilter', () => {
134171      expect ( result ) . toBe ( null ) ; 
135172    } ) ; 
136173
137-     it ( 'should drop  event if all frames are third-party frames' ,  async  ( )  =>  { 
174+     it ( 'drops  event if all frames are third-party frames' ,  async  ( )  =>  { 
138175      const  integration  =  thirdPartyErrorFilterIntegration ( { 
139176        behaviour : 'drop-error-if-contains-third-party-frames' , 
140177        filterKeys : [ 'some-key' ] , 
@@ -147,7 +184,7 @@ describe('ThirdPartyErrorFilter', () => {
147184  } ) ; 
148185
149186  describe ( 'drop-error-if-exclusively-contains-third-party-frames' ,  ( )  =>  { 
150-     it ( 'should keep  event if there are exclusively first-party frames' ,  async  ( )  =>  { 
187+     it ( 'keeps  event if there are exclusively first-party frames' ,  async  ( )  =>  { 
151188      const  integration  =  thirdPartyErrorFilterIntegration ( { 
152189        behaviour : 'drop-error-if-exclusively-contains-third-party-frames' , 
153190        filterKeys : [ 'some-key' ] , 
@@ -158,7 +195,7 @@ describe('ThirdPartyErrorFilter', () => {
158195      expect ( result ) . toBeDefined ( ) ; 
159196    } ) ; 
160197
161-     it ( 'should keep  event if there is at least one first-party frame' ,  async  ( )  =>  { 
198+     it ( 'keeps  event if there is at least one first-party frame' ,  async  ( )  =>  { 
162199      const  integration  =  thirdPartyErrorFilterIntegration ( { 
163200        behaviour : 'drop-error-if-exclusively-contains-third-party-frames' , 
164201        filterKeys : [ 'some-key' ] , 
@@ -169,7 +206,7 @@ describe('ThirdPartyErrorFilter', () => {
169206      expect ( result ) . toBeDefined ( ) ; 
170207    } ) ; 
171208
172-     it ( 'should drop  event if all frames are third-party frames' ,  async  ( )  =>  { 
209+     it ( 'drops  event if all frames are third-party frames' ,  async  ( )  =>  { 
173210      const  integration  =  thirdPartyErrorFilterIntegration ( { 
174211        behaviour : 'drop-error-if-exclusively-contains-third-party-frames' , 
175212        filterKeys : [ 'some-key' ] , 
@@ -182,7 +219,7 @@ describe('ThirdPartyErrorFilter', () => {
182219  } ) ; 
183220
184221  describe ( 'apply-tag-if-contains-third-party-frames' ,  ( )  =>  { 
185-     it ( 'should not  tag event if exclusively contains first-party frames' ,  async  ( )  =>  { 
222+     it ( "doesn't  tag event if exclusively contains first-party frames" ,  async  ( )  =>  { 
186223      const  integration  =  thirdPartyErrorFilterIntegration ( { 
187224        behaviour : 'apply-tag-if-contains-third-party-frames' , 
188225        filterKeys : [ 'some-key' ] , 
@@ -193,7 +230,7 @@ describe('ThirdPartyErrorFilter', () => {
193230      expect ( result ?. tags ?. third_party_code ) . toBeUndefined ( ) ; 
194231    } ) ; 
195232
196-     it ( 'should tag  event if contains at least one third-party frame' ,  async  ( )  =>  { 
233+     it ( 'tags  event if contains at least one third-party frame' ,  async  ( )  =>  { 
197234      const  integration  =  thirdPartyErrorFilterIntegration ( { 
198235        behaviour : 'apply-tag-if-contains-third-party-frames' , 
199236        filterKeys : [ 'some-key' ] , 
@@ -204,7 +241,7 @@ describe('ThirdPartyErrorFilter', () => {
204241      expect ( result ?. tags ) . toMatchObject ( {  third_party_code : true  } ) ; 
205242    } ) ; 
206243
207-     it ( 'should tag  event if contains exclusively third-party frames' ,  async  ( )  =>  { 
244+     it ( 'tags  event if contains exclusively third-party frames' ,  async  ( )  =>  { 
208245      const  integration  =  thirdPartyErrorFilterIntegration ( { 
209246        behaviour : 'apply-tag-if-contains-third-party-frames' , 
210247        filterKeys : [ 'some-key' ] , 
@@ -217,7 +254,7 @@ describe('ThirdPartyErrorFilter', () => {
217254  } ) ; 
218255
219256  describe ( 'apply-tag-if-exclusively-contains-third-party-frames' ,  ( )  =>  { 
220-     it ( 'should not  tag event if exclusively contains first-party frames' ,  async  ( )  =>  { 
257+     it ( "doesn't  tag event if exclusively contains first-party frames" ,  async  ( )  =>  { 
221258      const  integration  =  thirdPartyErrorFilterIntegration ( { 
222259        behaviour : 'apply-tag-if-exclusively-contains-third-party-frames' , 
223260        filterKeys : [ 'some-key' ] , 
@@ -228,7 +265,7 @@ describe('ThirdPartyErrorFilter', () => {
228265      expect ( result ?. tags ?. third_party_code ) . toBeUndefined ( ) ; 
229266    } ) ; 
230267
231-     it ( 'should not  tag event if contains at least one first-party frame' ,  async  ( )  =>  { 
268+     it ( "doesn't  tag event if contains at least one first-party frame" ,  async  ( )  =>  { 
232269      const  integration  =  thirdPartyErrorFilterIntegration ( { 
233270        behaviour : 'apply-tag-if-exclusively-contains-third-party-frames' , 
234271        filterKeys : [ 'some-key' ] , 
@@ -239,7 +276,7 @@ describe('ThirdPartyErrorFilter', () => {
239276      expect ( result ?. tags ?. third_party_code ) . toBeUndefined ( ) ; 
240277    } ) ; 
241278
242-     it ( 'should tag  event if contains exclusively third-party frames' ,  async  ( )  =>  { 
279+     it ( 'tags  event if contains exclusively third-party frames' ,  async  ( )  =>  { 
243280      const  integration  =  thirdPartyErrorFilterIntegration ( { 
244281        behaviour : 'apply-tag-if-exclusively-contains-third-party-frames' , 
245282        filterKeys : [ 'some-key' ] , 
0 commit comments