From 2159c6dbb1ffdbfca5bc062d339c52cfd30bde7a Mon Sep 17 00:00:00 2001 From: kirillgroshkov Date: Sun, 5 Jan 2025 13:02:43 +0100 Subject: [PATCH] feat: progress --- src/sentry/sentry.shared.service.ts | 8 ++++++++ src/server/getDefaultRouter.test.ts | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/sentry/sentry.shared.service.ts b/src/sentry/sentry.shared.service.ts index 1c6c0e4..74ba9b1 100644 --- a/src/sentry/sentry.shared.service.ts +++ b/src/sentry/sentry.shared.service.ts @@ -29,6 +29,14 @@ const INSPECT_OPT: InspectAnyOptions = { includeErrorData: true, } +/** + * Recommended sentry configuration: + * + * { + * maxValueLength: 2000, // default is 250 characters + * } + * + */ export class SentrySharedService { constructor(sentryServiceCfg: SentrySharedServiceCfg) { this.sentry = sentryServiceCfg.sentry diff --git a/src/server/getDefaultRouter.test.ts b/src/server/getDefaultRouter.test.ts index 466f56e..30bdba0 100644 --- a/src/server/getDefaultRouter.test.ts +++ b/src/server/getDefaultRouter.test.ts @@ -7,8 +7,8 @@ afterAll(async () => { }) test('root resource ok', async () => { - // const r = await app.get('') - // expect(r).toEqual({ ok: 1 }) + const r = await app.get('') + expect(r).toEqual({ ok: 1 }) }) // This started to mysteriously fail after some Got upgrade