We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f74929 commit 7fc9416Copy full SHA for 7fc9416
test/lib/commands/copy.js
@@ -172,9 +172,16 @@ t.test('workspaces', async t => {
172
await npm.exec('copy', ['build'])
173
const canonPath = path.join('build', 'node_modules', 'a')
174
const linkPath = path.join('build', 'node_modules', 'c')
175
+
176
+ // if we stat the linkPath windows errors with EPERM, so I want to stat the
177
+ // link target, which means resolving relative links.
178
+ const linkDest = path.resolve(
179
+ path.dirname(linkPath),
180
+ fs.readlinkSync(linkPath))
181
182
t.strictSame(
183
fs.statSync(canonPath),
- fs.statSync(linkPath),
184
+ fs.statSync(linkDest),
185
`${linkPath} should be a link to ${canonPath}`)
186
})
187
0 commit comments