Skip to content

Commit 6716401

Browse files
committed
debnug
1 parent 9793ca4 commit 6716401

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/e2e/tests/metrics/errors.spec.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ describe('Sentry errors', function () {
316316
});
317317
});
318318

319-
describe('before initialization, after opting into metrics', function () {
320-
it('should send error events in background', async function () {
319+
describe.only('before initialization, after opting into metrics', function () {
320+
it.only('should send error events in background', async function () {
321321
await withFixtures(
322322
{
323323
fixtures: {
@@ -347,14 +347,19 @@ describe('Sentry errors', function () {
347347
}, WAIT_FOR_SENTRY_MS);
348348

349349
const [mockedRequest] = await mockedEndpoint.getSeenRequests();
350+
351+
console.log('mockedRequest============', mockedRequest);
350352
const mockTextBody = (await mockedRequest.body.getText()).split('\n');
351353
const mockJsonBody = JSON.parse(mockTextBody[2]);
354+
console.log('mockJson Body ============', mockJsonBody);
355+
352356
// Verify request
353357
const escapedMigrationError = migrationError.replace(
354358
/[.*+?^${}()|[\]\\]/gu,
355359
'\\$&',
356360
);
357361
const migrationErrorRegex = new RegExp(escapedMigrationError, 'u');
362+
console.log('migrationErrorRegex============', migrationErrorRegex);
358363
assert.match(
359364
JSON.stringify(mockJsonBody.exception),
360365
migrationErrorRegex,

0 commit comments

Comments
 (0)