From e25463bc0ad0f93e625e3ed46c8fa015b57717e4 Mon Sep 17 00:00:00 2001 From: Tianyi Cui <53024+tianyicui@users.noreply.github.com> Date: Mon, 24 Aug 2026 22:02:38 +0800 Subject: [PATCH] test(snapshot): cover Windows workspace symlinks --- .../test-support/session-snapshot/tests/workspace.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/test-support/session-snapshot/tests/workspace.spec.ts b/packages/test-support/session-snapshot/tests/workspace.spec.ts index 980789ad18..622d34b59d 100644 --- a/packages/test-support/session-snapshot/tests/workspace.spec.ts +++ b/packages/test-support/session-snapshot/tests/workspace.spec.ts @@ -26,13 +26,13 @@ describe('workspace snapshots', () => { await writeFile(join(directory, 'a.txt'), 'hello\n') await writeFile(join(directory, 'b.bin'), Buffer.from([0xff, 0x01])) await mkdir(join(directory, 'empty')) - if (process.platform !== 'win32') await symlink('a.txt', join(directory, 'link')) + await symlink('a.txt', join(directory, 'link')) expect(await captureWorkspaceSnapshot(directory)).toEqual([ { path: 'a.txt', kind: 'text', content: 'hello\n' }, { path: 'b.bin', kind: 'binary', base64: '/wE=' }, { path: 'empty', kind: 'empty-directory' }, - ...process.platform === 'win32' ? [] : [{ path: 'link', kind: 'symlink', target: 'a.txt' }], + { path: 'link', kind: 'symlink', target: 'a.txt' }, ]) })