Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test: report mock-drift paths with forward slashes on Windows (#11891)
Adam Eivy497987ad4651
diff --git a/scripts/lib/mockContractScan.js b/scripts/lib/mockContractScan.jsindex 4d35b5b24c..f196d72854 100644--- a/scripts/lib/mockContractScan.js+++ b/scripts/lib/mockContractScan.js@@ -15,7 +15,7 @@*/import { existsSync, readFileSync, statSync } from 'node:fs';-import { dirname, join, resolve, relative } from 'node:path';+import { dirname, join, resolve, relative, sep } from 'node:path';/** A `/` after an operator, opener or `return` begins a regex literal, not a division. */function startsRegex(source, at) {@@ -184,7 +184,7 @@ const exportCache = new Map();/** `file:line — spec mocks <key>` for each key the real module does not export. */export function mockDrift(testFile, rawSource, { root, allowed = new Map() }) {const masked = mask(rawSource);- const rel = relative(root, testFile);+ const rel = relative(root, testFile).split(sep).join('/');const violations = [];// The specifier is a string, so it is blanked in `masked`; match on raw and// require the call itself to be live code (not inside a comment).