Skip to content

Commit

Permalink
fix windows stat dir symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb ツ Everett committed Jan 4, 2022
1 parent 0f74929 commit 06e0234
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/lib/commands/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,10 @@ t.test('workspaces', async t => {
await npm.exec('copy', ['build'])
const canonPath = path.join('build', 'node_modules', 'a')
const linkPath = path.join('build', 'node_modules', 'c')
const linkDest = path.resolve(linkPath, fs.readlinkSync(linkPath))
t.strictSame(
fs.statSync(canonPath),
fs.statSync(linkPath),
fs.statSync(linkDest),
`${linkPath} should be a link to ${canonPath}`)
})
})
Expand Down

0 comments on commit 06e0234

Please sign in to comment.