diff --git a/src/middleware/notFoundMiddleware.ts b/src/middleware/notFoundMiddleware.ts index fca171b..5b84186 100644 --- a/src/middleware/notFoundMiddleware.ts +++ b/src/middleware/notFoundMiddleware.ts @@ -1,4 +1,4 @@ -import { Context } from '../context'; +import type { Context } from '../context'; import responses from '../responses'; import type { Request } from '../routes/request'; import type { Middleware } from './middleware'; diff --git a/src/middleware/optionsMiddleware.ts b/src/middleware/optionsMiddleware.ts index 9358528..2f84999 100644 --- a/src/middleware/optionsMiddleware.ts +++ b/src/middleware/optionsMiddleware.ts @@ -1,5 +1,5 @@ import { CACHE_HEADERS } from '../constants/cache'; -import { Context } from '../context'; +import type { Context } from '../context'; import type { Middleware } from './middleware'; /** diff --git a/tests/unit/middleware/substituteMiddleware.test.ts b/tests/unit/middleware/substituteMiddleware.test.ts index 4887e62..893bf2a 100644 --- a/tests/unit/middleware/substituteMiddleware.test.ts +++ b/tests/unit/middleware/substituteMiddleware.test.ts @@ -39,5 +39,9 @@ it('correctly substitutes url `/dist/latest` to `/dist/v1.0.0`', async () => { const middleware = new SubtitutionMiddleware(router, 'latest', 'v1.0.0'); // @ts-expect-error full request & ctx not needed - middleware.handle(originalRequest, undefined); + middleware.handle(originalRequest, { + sentry: { + addBreadcrumb: () => {}, + }, + }); });