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

fix: normalize windows dependency test paths

[._.]/ Adam Eivycc123f716de0
diff --git a/server/services/worktreeManager.test.js b/server/services/worktreeManager.test.js
index c15c18128b..e2c5d6fec1 100644
--- a/server/services/worktreeManager.test.js
+++ b/server/services/worktreeManager.test.js
@@ -121,7 +121,7 @@ describe('Worktree dependency preparation', () => {
});
it('links installed root, client, and server dependencies when targets are absent', async () => {
- lstat.mockImplementation((path) => path.replaceAll('\\\\', '/').startsWith('/repo/')
+ lstat.mockImplementation((path) => path.replaceAll('\\', '/').startsWith('/repo/')
? Promise.resolve({})
: Promise.reject(new Error('missing')));
@@ -129,7 +129,7 @@ describe('Worktree dependency preparation', () => {
expect(symlink).toHaveBeenCalledTimes(3);
const linkedPaths = symlink.mock.calls.map(([source, target]) => [
- source.replaceAll('\\\\', '/'), target.replaceAll('\\\\', '/'),
+ source.replaceAll('\\', '/'), target.replaceAll('\\', '/'),
]);
expect(linkedPaths).toEqual(expect.arrayContaining([
['/repo/node_modules', '/worktree/node_modules'],
@@ -139,7 +139,7 @@ describe('Worktree dependency preparation', () => {
});
it('skips missing sources and preserves existing targets', async () => {
- lstat.mockImplementation((path) => ['/repo/node_modules', '/worktree/node_modules'].includes(path.replaceAll('\\\\', '/'))
+ lstat.mockImplementation((path) => ['/repo/node_modules', '/worktree/node_modules'].includes(path.replaceAll('\\', '/'))
? Promise.resolve({})
: Promise.reject(new Error('missing')));