Skip to content

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

test: normalize Windows separators in the workspace-link readlink assertion (#12633)

[._.]/ Adam Eivycce76bcf6dda
diff --git a/scripts/link-worktree-deps.test.js b/scripts/link-worktree-deps.test.js
index 98a06466f3..53f01b8eff 100644
--- a/scripts/link-worktree-deps.test.js
+++ b/scripts/link-worktree-deps.test.js
@@ -61,7 +61,8 @@ describe('link-worktree-deps script', () => {
expect(result.status).toBe(0);
const linked = join(worktree, 'node_modules');
expect(lstatSync(linked).isSymbolicLink()).toBe(false);
- expect(readlinkSync(join(linked, '@acme', 'core'))).toBe('../../packages/core');
+ // Windows reports the recreated relative target with backslashes.
+ expect(readlinkSync(join(linked, '@acme', 'core')).replaceAll('\\', '/')).toBe('../../packages/core');
expect(readFileSync(join(linked, '@acme', 'core', 'marker.txt'), 'utf8')).toBe('fresh');
expect(realpathSync(join(linked, '@acme', 'core')).startsWith(worktree)).toBe(true);
// Everything that is not a workspace link still shares the source's install.