Skip to content

Commit 928384a

Browse files
committed
fix windows stat dir symlink
1 parent 0f74929 commit 928384a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/lib/commands/copy.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,10 @@ 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 linkDest = fs.readlinkSync(path.join('build', 'node_modules', 'c'))
175176
t.strictSame(
176177
fs.statSync(canonPath),
177-
fs.statSync(linkPath),
178+
fs.statSync(linkDest),
178179
`${linkPath} should be a link to ${canonPath}`)
179180
})
180181
})

0 commit comments

Comments
 (0)