Skip to content

Commit 651dbbd

Browse files
committed
fix windows stat dir symlink
1 parent 0f74929 commit 651dbbd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/lib/commands/copy.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,14 @@ t.test('workspaces', async t => {
172172
await npm.exec('copy', ['build'])
173173
const canonPath = path.join('build', 'node_modules', 'a')
174174
const linkPath = path.join('build', 'node_modules', 'c')
175+
const readlink = fs.readlinkSync(linkPath)
176+
const linkDest = path.resolve(path.dirname(linkPath), readlink)
177+
178+
console.log({ canonPath, linkPath, readlink, linkDest })
179+
175180
t.strictSame(
176181
fs.statSync(canonPath),
177-
fs.statSync(linkPath),
182+
fs.statSync(linkDest),
178183
`${linkPath} should be a link to ${canonPath}`)
179184
})
180185
})

0 commit comments

Comments
 (0)