Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
writeJsonFile('is-subdir/package.json', {
dependencies: {
'is-windows': '^1.0.0',
},
name: 'is-subdir',
version: '1.0.0',
}),
writeJsonFile('logger/package.json', {
name: '@zkochan/logger',
version: '0.1.0',
}),
])
await link(['is-subdir', 'logger'], path.join('project', 'node_modules'), opts)
await unlink(opts)
t.equal(typeof project.requireModule('is-subdir'), 'function', 'is-subdir installed after unlinked')
t.equal(typeof project.requireModule('@zkochan/logger'), 'object', '@zkochan/logger installed after unlinked')
})