From cf21001b18d3345898b18e80f2792ea6d736fafe Mon Sep 17 00:00:00 2001 From: iliya Date: Sat, 16 May 2026 18:27:20 +0300 Subject: [PATCH] test: cover home path detection variants --- test/shared/utils/platformPath.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/shared/utils/platformPath.test.ts b/test/shared/utils/platformPath.test.ts index 94979695..f5d7faff 100644 --- a/test/shared/utils/platformPath.test.ts +++ b/test/shared/utils/platformPath.test.ts @@ -44,7 +44,9 @@ describe('platformPath Windows containment', () => { expect(isAbsoluteOrHomePath('/Users/Alice/Repo')).toBe(true); expect(isAbsoluteOrHomePath('C:\\Users\\Alice\\Repo')).toBe(true); expect(isAbsoluteOrHomePath('\\\\server\\share\\Repo')).toBe(true); + expect(isAbsoluteOrHomePath('~')).toBe(true); expect(isAbsoluteOrHomePath('~/Repo')).toBe(true); + expect(isAbsoluteOrHomePath('~\\Repo')).toBe(true); expect(isAbsoluteOrHomePath('src/app.ts')).toBe(false); }); });