@@ -211,6 +211,7 @@ describe('Sentry errors', function () {
211211 async function mockSentryMigratorError ( mockServer : Mockttp ) {
212212 return await mockServer
213213 . forPost ( sentryRegEx )
214+ . withBodyIncluding ( '{"type":"event"' )
214215 . withBodyIncluding ( migrationError )
215216 . thenCallback ( ( ) => {
216217 return {
@@ -316,8 +317,8 @@ describe('Sentry errors', function () {
316317 } ) ;
317318 } ) ;
318319
319- describe . only ( 'before initialization, after opting into metrics' , function ( ) {
320- it . only ( 'should send error events in background' , async function ( ) {
320+ describe ( 'before initialization, after opting into metrics' , function ( ) {
321+ it ( 'should send error events in background' , async function ( ) {
321322 await withFixtures (
322323 {
323324 fixtures : {
@@ -347,19 +348,14 @@ describe('Sentry errors', function () {
347348 } , WAIT_FOR_SENTRY_MS ) ;
348349
349350 const [ mockedRequest ] = await mockedEndpoint . getSeenRequests ( ) ;
350-
351- console . log ( 'mockedRequest============' , mockedRequest ) ;
352351 const mockTextBody = ( await mockedRequest . body . getText ( ) ) . split ( '\n' ) ;
353352 const mockJsonBody = JSON . parse ( mockTextBody [ 2 ] ) ;
354- console . log ( 'mockJson Body ============' , mockJsonBody ) ;
355-
356353 // Verify request
357354 const escapedMigrationError = migrationError . replace (
358355 / [ . * + ? ^ $ { } ( ) | [ \] \\ ] / gu,
359356 '\\$&' ,
360357 ) ;
361358 const migrationErrorRegex = new RegExp ( escapedMigrationError , 'u' ) ;
362- console . log ( 'migrationErrorRegex============' , migrationErrorRegex ) ;
363359 assert . match (
364360 JSON . stringify ( mockJsonBody . exception ) ,
365361 migrationErrorRegex ,
0 commit comments