test(reports): document Node 22 mock contract
This commit is contained in:
@@ -18,6 +18,7 @@ function executeReadyReportExport() {
|
||||
import { Agent } from "@mastra/core/agent";
|
||||
|
||||
const moduleUrl = (path) => pathToFileURL(process.cwd() + "/" + path).href;
|
||||
// Node 22 ignores the unsupported `exports` mock option; keep the route aliases explicit.
|
||||
mock.module("@/lib/personal-report-entitlement", { namedExports: {
|
||||
checkSameOrigin: () => ({ ok: true }),
|
||||
resolveAllowedReportOrigins: () => [],
|
||||
|
||||
Reference in New Issue
Block a user