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); }); });