remove engines 24 reuqirement from toolkit and fix test
This commit is contained in:
1 parent
a75fb858fc
commit
b1d6844613
1 file changed
+4
-3
@@ -643,9 +643,10 @@ describe('rmRF', () => {
|
|||||||
})
|
})
|
||||||
).toBe('test file content')
|
).toBe('test file content')
|
||||||
if (os.platform() === 'win32') {
|
if (os.platform() === 'win32') {
|
||||||
expect(await fs.readlink(symlinkLevel2Directory)).toBe(
|
// Node.js 24 changed behavior - fs.readlink no longer includes trailing backslash
|
||||||
`${symlinkDirectory}\\`
|
// Accept both formats for compatibility
|
||||||
)
|
const linkPath = await fs.readlink(symlinkLevel2Directory)
|
||||||
|
expect(linkPath.replace(/\\+$/, '')).toBe(symlinkDirectory.replace(/\\+$/, ''))
|
||||||
} else {
|
} else {
|
||||||
expect(await fs.readlink(symlinkLevel2Directory)).toBe(symlinkDirectory)
|
expect(await fs.readlink(symlinkLevel2Directory)).toBe(symlinkDirectory)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user