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 928384a
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 = fs.readlinkSync(path.join('build', 'node_modules', 'c'))
t.strictSame(
fs.statSync(canonPath),
fs.statSync(linkPath),
fs.statSync(linkDest),
`${linkPath} should be a link to ${canonPath}`)
})
})
Expand Down

0 comments on commit 928384a

Please sign in to comment.