From b1d6844613de5bb606001a80e9b6c0586a77d5ad Mon Sep 17 00:00:00 2001 From: Salman Muin Kayser Chishti Date: Thu, 4 Sep 2025 12:41:43 +0100 Subject: [PATCH] remove engines 24 reuqirement from toolkit and fix test --- __tests__/io.test.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/__tests__/io.test.ts b/__tests__/io.test.ts index c05be13..87f7c7b 100644 --- a/__tests__/io.test.ts +++ b/__tests__/io.test.ts @@ -643,9 +643,10 @@ describe('rmRF', () => { }) ).toBe('test file content') if (os.platform() === 'win32') { - expect(await fs.readlink(symlinkLevel2Directory)).toBe( - `${symlinkDirectory}\\` - ) + // Node.js 24 changed behavior - fs.readlink no longer includes trailing backslash + // Accept both formats for compatibility + const linkPath = await fs.readlink(symlinkLevel2Directory) + expect(linkPath.replace(/\\+$/, '')).toBe(symlinkDirectory.replace(/\\+$/, '')) } else { expect(await fs.readlink(symlinkLevel2Directory)).toBe(symlinkDirectory) }