test(windows): make coverage fixtures portable

This commit is contained in:
Tianyi Cui
2026-07-22 13:10:48 +08:00
parent d1236963bf
commit 4643e0de10
12 changed files with 117 additions and 34 deletions

View File

@@ -25,7 +25,7 @@ const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i
describe('globalConfigDir', () => {
it('prefers an explicit DSH_HOME override', () => {
expect(globalConfigDir({ env: { DSH_HOME: '/custom/dsh' } })).toBe('/custom/dsh')
expect(globalConfigDir({ env: { DSH_HOME: '/custom/dsh' } })).toBe(resolve('/custom/dsh'))
})
it('falls back to ~/.dsh when DSH_HOME is unset', () => {