diff --git a/.gitignore b/.gitignore index ba1b59a5..52e78ddc 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,6 @@ node_modules npm-shrinkwrap.json package-lock.json yarn.lock + +# symlinked file used in tests +test/resolver/symlinked/_/node_modules/package diff --git a/test/symlinks.js b/test/symlinks.js index 392f4dd4..9b5a2548 100644 --- a/test/symlinks.js +++ b/test/symlinks.js @@ -8,6 +8,9 @@ var packageDir = path.join(__dirname, 'resolver', 'symlinked', '_', 'node_module try { fs.unlinkSync(symlinkDir); } catch (err) {} +try { + fs.unlinkSync(packageDir); +} catch (err) {} try { fs.symlinkSync('./_/symlink_target', symlinkDir, 'dir'); } catch (err) {