Skip to content

Commit

Permalink
Add test case for symlinked node_modules with ignore
Browse files Browse the repository at this point in the history
Hoping to add a test case that will help us resolve some of the issues
explored in #70
  • Loading branch information
lencioni authored and ljharb committed Oct 26, 2022
1 parent 801ed66 commit d8e4115
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/symlinked-node-modules/.licensee.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"licenses": {
"spdx": [
"Apache-2.0"
]
},
"packages": {},
"ignore": [
{
"prefix": "mit-"
}
]
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions tests/symlinked-node-modules/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions tests/symlinked-node-modules/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "allowed",
"dependencies": {
"mit-licensed": "1.0.0"
},
"private": true
}
5 changes: 5 additions & 0 deletions tests/symlinked-node-modules/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var tap = require('tap')

var results = require('../run')([], __dirname)

tap.equal(results.status, 0)

0 comments on commit d8e4115

Please sign in to comment.