From d56da11417a33edd9188950feb1e64fba74bd9cc Mon Sep 17 00:00:00 2001 From: Samuel Lippert Date: Fri, 12 Aug 2022 14:57:37 -0500 Subject: [PATCH] Add callback --- deno_test/index.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deno_test/index.test.ts b/deno_test/index.test.ts index 9b4738f3..860e8854 100644 --- a/deno_test/index.test.ts +++ b/deno_test/index.test.ts @@ -17,7 +17,12 @@ class Context implements ExecutionContext { Deno.test('Sentry Middleware', async () => { const app = new Hono() - app.use('/sentry/*', sentry()) + app.use( + '/sentry/*', + sentry(undefined, (sentry) => { + sentry.captureMessage('foo') + }) + ) app.get('/sentry/foo', (c) => c.text('foo')) app.get('/sentry/error', () => { throw new Error('a catastrophic error')