DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.
test(turnrewind): 嵌套仓库断言不依赖文件系统枚举顺序
hairyf6e12346dba0d
diff --git a/packages/dsh-tauri-turnrewind/src/host/service/snapshot.test.ts b/packages/dsh-tauri-turnrewind/src/host/service/snapshot.test.tsindex 89960eda..7487167e 100644--- a/packages/dsh-tauri-turnrewind/src/host/service/snapshot.test.ts+++ b/packages/dsh-tauri-turnrewind/src/host/service/snapshot.test.ts@@ -279,7 +279,9 @@ describe('liveDiff(运行中实时读数)', () => {const store = snapshotStoreFor(dshHome, worktree)const nestedDirs = scanNestedRepos(worktree)- expect(nestedDirs).toEqual(['source/react-use', 'source/vueuse'])+ // `scanNestedRepos` 按 `readdirSync` 的顺序追加(不排序),枚举顺序随文件系统而变+ // (Linux 上就不是字典序),断言前先排序,别把文件系统行为钉进期望值。+ expect([...nestedDirs].sort()).toEqual(['source/react-use', 'source/vueuse'])const before = await captureSnapshot(store, turnRef('s16', 1, 'before'), 'before', { nestedDirs })expect(before.ok).toBe(true)if (!before.ok)