test(reports): document Node 22 mock contract
Independent Staging Quality Gate / validate (push) Failing after 7m52s
Independent Staging Quality Gate / publish (push) Has been skipped

This commit is contained in:
Jesse_Chen
2026-09-04 05:04:58 +08:00
parent 85f0189879
commit 86d107c907
@@ -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: () => [],