Skip to content

Commit

Permalink
[Tests] gitignore file created in tests; remove it in test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Aug 1, 2019
1 parent 2eb4051 commit 46df625
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions test/symlinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 46df625

Please sign in to comment.