mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-08-29 04:26:38 +00:00
test(snapshot): cover Windows workspace symlinks
This commit is contained in:
@@ -26,13 +26,13 @@ describe('workspace snapshots', () => {
|
|||||||
await writeFile(join(directory, 'a.txt'), 'hello\n')
|
await writeFile(join(directory, 'a.txt'), 'hello\n')
|
||||||
await writeFile(join(directory, 'b.bin'), Buffer.from([0xff, 0x01]))
|
await writeFile(join(directory, 'b.bin'), Buffer.from([0xff, 0x01]))
|
||||||
await mkdir(join(directory, 'empty'))
|
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([
|
expect(await captureWorkspaceSnapshot(directory)).toEqual([
|
||||||
{ path: 'a.txt', kind: 'text', content: 'hello\n' },
|
{ path: 'a.txt', kind: 'text', content: 'hello\n' },
|
||||||
{ path: 'b.bin', kind: 'binary', base64: '/wE=' },
|
{ path: 'b.bin', kind: 'binary', base64: '/wE=' },
|
||||||
{ path: 'empty', kind: 'empty-directory' },
|
{ path: 'empty', kind: 'empty-directory' },
|
||||||
...process.platform === 'win32' ? [] : [{ path: 'link', kind: 'symlink', target: 'a.txt' }],
|
{ path: 'link', kind: 'symlink', target: 'a.txt' },
|
||||||
])
|
])
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user