@@ -58,7 +58,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
58
58
const [ transaction ] = envelopes . filter ( envelope => envelope [ 1 ] ?. type === 'transaction' ) ;
59
59
const [ event ] = envelopes . filter ( envelope => envelope [ 1 ] ?. type === 'event' ) ;
60
60
61
- assertSentryTransaction ( transaction [ 2 ] , {
61
+ assertSentryTransaction ( transaction ! [ 2 ] ! , {
62
62
contexts : {
63
63
trace : {
64
64
status : 'internal_error' ,
@@ -69,7 +69,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
69
69
} ,
70
70
} ) ;
71
71
72
- assertSentryEvent ( event [ 2 ] , {
72
+ assertSentryEvent ( event ! [ 2 ] ! , {
73
73
transaction : expect . stringMatching ( / r o u t e s \/ a c t i o n - j s o n - r e s p o n s e ( \/ | \. ) \$ i d / ) ,
74
74
exception : {
75
75
values : [
@@ -104,7 +104,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
104
104
const [ transaction ] = envelopes . filter ( envelope => envelope [ 1 ] ?. type === 'transaction' ) ;
105
105
const [ event ] = envelopes . filter ( envelope => envelope [ 1 ] ?. type === 'event' ) ;
106
106
107
- assertSentryTransaction ( transaction [ 2 ] , {
107
+ assertSentryTransaction ( transaction ! [ 2 ] ! , {
108
108
transaction : `routes/action-json-response${ useV2 ? '.' : '/' } $id` ,
109
109
request : {
110
110
method : 'POST' ,
@@ -117,7 +117,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
117
117
} ,
118
118
} ) ;
119
119
120
- assertSentryEvent ( event [ 2 ] , {
120
+ assertSentryEvent ( event ! [ 2 ] ! , {
121
121
transaction : expect . stringMatching ( / r o u t e s \/ a c t i o n - j s o n - r e s p o n s e ( \/ | \. ) \$ i d / ) ,
122
122
exception : {
123
123
values : [
@@ -153,7 +153,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
153
153
const [ transaction_1 , transaction_2 ] = envelopes . filter ( envelope => envelope [ 1 ] ?. type === 'transaction' ) ;
154
154
const [ event ] = envelopes . filter ( envelope => envelope [ 1 ] ?. type === 'event' ) ;
155
155
156
- assertSentryTransaction ( transaction_1 [ 2 ] , {
156
+ assertSentryTransaction ( transaction_1 ! [ 2 ] ! , {
157
157
contexts : {
158
158
trace : {
159
159
op : 'http.server' ,
@@ -167,7 +167,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
167
167
transaction : `routes/action-json-response${ useV2 ? '.' : '/' } $id` ,
168
168
} ) ;
169
169
170
- assertSentryTransaction ( transaction_2 [ 2 ] , {
170
+ assertSentryTransaction ( transaction_2 ! [ 2 ] , {
171
171
contexts : {
172
172
trace : {
173
173
op : 'http.server' ,
@@ -181,7 +181,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
181
181
transaction : `routes/action-json-response${ useV2 ? '.' : '/' } $id` ,
182
182
} ) ;
183
183
184
- assertSentryEvent ( event [ 2 ] , {
184
+ assertSentryEvent ( event ! [ 2 ] ! , {
185
185
transaction : expect . stringMatching ( / r o u t e s \/ a c t i o n - j s o n - r e s p o n s e ( \/ | \. ) \$ i d / ) ,
186
186
exception : {
187
187
values : [
@@ -216,7 +216,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
216
216
const [ transaction ] = envelopes . filter ( envelope => envelope [ 1 ] ?. type === 'transaction' ) ;
217
217
const [ event ] = envelopes . filter ( envelope => envelope [ 1 ] ?. type === 'event' ) ;
218
218
219
- assertSentryTransaction ( transaction [ 2 ] , {
219
+ assertSentryTransaction ( transaction ! [ 2 ] ! , {
220
220
contexts : {
221
221
trace : {
222
222
op : 'http.server' ,
@@ -230,7 +230,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
230
230
transaction : `routes/action-json-response${ useV2 ? '.' : '/' } $id` ,
231
231
} ) ;
232
232
233
- assertSentryEvent ( event [ 2 ] , {
233
+ assertSentryEvent ( event ! [ 2 ] ! , {
234
234
transaction : expect . stringMatching ( / r o u t e s \/ a c t i o n - j s o n - r e s p o n s e ( \/ | \. ) \$ i d / ) ,
235
235
exception : {
236
236
values : [
@@ -265,7 +265,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
265
265
const [ transaction ] = envelopes . filter ( envelope => envelope [ 1 ] ?. type === 'transaction' ) ;
266
266
const [ event ] = envelopes . filter ( envelope => envelope [ 1 ] ?. type === 'event' ) ;
267
267
268
- assertSentryTransaction ( transaction [ 2 ] , {
268
+ assertSentryTransaction ( transaction ! [ 2 ] ! , {
269
269
contexts : {
270
270
trace : {
271
271
op : 'http.server' ,
@@ -279,7 +279,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
279
279
transaction : `routes/action-json-response${ useV2 ? '.' : '/' } $id` ,
280
280
} ) ;
281
281
282
- assertSentryEvent ( event [ 2 ] , {
282
+ assertSentryEvent ( event ! [ 2 ] ! , {
283
283
transaction : expect . stringMatching ( / r o u t e s \/ a c t i o n - j s o n - r e s p o n s e ( \/ | \. ) \$ i d / ) ,
284
284
exception : {
285
285
values : [
@@ -314,7 +314,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
314
314
const [ transaction ] = envelopes . filter ( envelope => envelope [ 1 ] ?. type === 'transaction' ) ;
315
315
const [ event ] = envelopes . filter ( envelope => envelope [ 1 ] ?. type === 'event' ) ;
316
316
317
- assertSentryTransaction ( transaction [ 2 ] , {
317
+ assertSentryTransaction ( transaction ! [ 2 ] ! , {
318
318
contexts : {
319
319
trace : {
320
320
op : 'http.server' ,
@@ -328,7 +328,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
328
328
transaction : `routes/action-json-response${ useV2 ? '.' : '/' } $id` ,
329
329
} ) ;
330
330
331
- assertSentryEvent ( event [ 2 ] , {
331
+ assertSentryEvent ( event ! [ 2 ] ! , {
332
332
transaction : expect . stringMatching ( / r o u t e s \/ a c t i o n - j s o n - r e s p o n s e ( \/ | \. ) \$ i d / ) ,
333
333
exception : {
334
334
values : [
@@ -363,7 +363,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
363
363
const [ transaction ] = envelopes . filter ( envelope => envelope [ 1 ] ?. type === 'transaction' ) ;
364
364
const [ event ] = envelopes . filter ( envelope => envelope [ 1 ] ?. type === 'event' ) ;
365
365
366
- assertSentryTransaction ( transaction [ 2 ] , {
366
+ assertSentryTransaction ( transaction ! [ 2 ] ! , {
367
367
contexts : {
368
368
trace : {
369
369
op : 'http.server' ,
@@ -377,7 +377,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
377
377
transaction : `routes/action-json-response${ useV2 ? '.' : '/' } $id` ,
378
378
} ) ;
379
379
380
- assertSentryEvent ( event [ 2 ] , {
380
+ assertSentryEvent ( event ! [ 2 ] ! , {
381
381
transaction : expect . stringMatching ( / r o u t e s \/ a c t i o n - j s o n - r e s p o n s e ( \/ | \. ) \$ i d / ) ,
382
382
exception : {
383
383
values : [
@@ -412,7 +412,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
412
412
const [ transaction ] = envelopes . filter ( envelope => envelope [ 1 ] ?. type === 'transaction' ) ;
413
413
const [ event ] = envelopes . filter ( envelope => envelope [ 1 ] ?. type === 'event' ) ;
414
414
415
- assertSentryTransaction ( transaction [ 2 ] , {
415
+ assertSentryTransaction ( transaction ! [ 2 ] ! , {
416
416
contexts : {
417
417
trace : {
418
418
op : 'http.server' ,
@@ -426,7 +426,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
426
426
transaction : `routes/server-side-unexpected-errors${ useV2 ? '.' : '/' } $id` ,
427
427
} ) ;
428
428
429
- assertSentryEvent ( event [ 2 ] , {
429
+ assertSentryEvent ( event ! [ 2 ] ! , {
430
430
transaction : expect . stringMatching ( / r o u t e s \/ s e r v e r - s i d e - u n e x p e c t e d - e r r o r s ( \/ | \. ) \$ i d / ) ,
431
431
exception : {
432
432
values : [
@@ -461,7 +461,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
461
461
const [ transaction ] = envelopes . filter ( envelope => envelope [ 1 ] ?. type === 'transaction' ) ;
462
462
const [ event ] = envelopes . filter ( envelope => envelope [ 1 ] ?. type === 'event' ) ;
463
463
464
- assertSentryTransaction ( transaction [ 2 ] , {
464
+ assertSentryTransaction ( transaction ! [ 2 ] ! , {
465
465
contexts : {
466
466
trace : {
467
467
op : 'http.server' ,
@@ -475,7 +475,7 @@ describe.each(['builtin', 'express'])('Remix API Actions with adapter = %s', ada
475
475
transaction : `routes/server-side-unexpected-errors${ useV2 ? '.' : '/' } $id` ,
476
476
} ) ;
477
477
478
- assertSentryEvent ( event [ 2 ] , {
478
+ assertSentryEvent ( event ! [ 2 ] ! , {
479
479
transaction : expect . stringMatching ( / r o u t e s \/ s e r v e r - s i d e - u n e x p e c t e d - e r r o r s ( \/ | \. ) \$ i d / ) ,
480
480
exception : {
481
481
values : [
0 commit comments