Skip to content

feat: node middleware #933

feat: node middleware

feat: node middleware #933

Triggered via pull request February 6, 2025 12:19
Status Failure
Total duration 1m 4s
Artifacts

check.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
validate
tests-unit#test: command (/home/runner/work/opennextjs-aws/opennextjs-aws/packages/tests-unit) pnpm run test exited (1)
packages/tests-unit/tests/core/routing/middleware.test.ts: packages/open-next/src/core/routing/middleware.ts#L27
Error: [vitest] No "FunctionsConfigManifest" export is defined on the "@opennextjs/aws/adapters/config/index.js" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@opennextjs/aws/adapters/config/index.js"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ packages/open-next/src/core/routing/middleware.ts:27:33 ❯ packages/tests-unit/tests/core/routing/middleware.test.ts:32:25
validate
Process completed with exit code 1.
validate
Couldn't write a comment to the pull request. Please make sure your job has the permission 'pull-request: write'. Original Error was: [HttpError] - Resource not accessible by integration