feat: node middleware #933
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
|