-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
npm: Convert FileParser specs to project fixtures
Part of the effort to remove old npm spec fixtures seprated by manifest type and use project based fixtures.
- Loading branch information
Showing
53 changed files
with
4,633 additions
and
260 deletions.
There are no files selected for viewing
351 changes: 91 additions & 260 deletions
351
npm_and_yarn/spec/dependabot/npm_and_yarn/file_parser_spec.rb
Large diffs are not rendered by default.
Oops, something went wrong.
75 changes: 75 additions & 0 deletions
75
npm_and_yarn/spec/fixtures/projects/npm4/shrinkwrap_relative/npm-shrinkwrap.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
npm_and_yarn/spec/fixtures/projects/npm4/shrinkwrap_relative/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "{{ name }}", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no\\ test\ specified\" && exit 1", | ||
"prettify": "prettier --write \"{{packages/*/src,examples,cypress,scripts}/**/,}*.{js,jsx,ts,tsx,css,md}\"" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/waltfy/PROTO_TEST.git" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/waltfy/PROTO_TEST/issues" | ||
}, | ||
"homepage": "https://github.com/waltfy/PROTO_TEST#readme", | ||
"dependencies": { | ||
"fetch-factory": "^0.0.1" | ||
}, | ||
"devDependencies": { | ||
"etag" : "^1.0.0" | ||
}} |
21 changes: 21 additions & 0 deletions
21
npm_and_yarn/spec/fixtures/projects/npm6/blank_requirement/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "{{ name }}", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/waltfy/PROTO_TEST.git" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/waltfy/PROTO_TEST/issues" | ||
}, | ||
"homepage": "https://github.com/waltfy/PROTO_TEST#readme", | ||
"dependencies": { | ||
"fetch-factory": "" | ||
}} |
25 changes: 25 additions & 0 deletions
25
npm_and_yarn/spec/fixtures/projects/npm6/duplicate/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "test", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/waltfy/PROTO_TEST.git" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/waltfy/PROTO_TEST/issues" | ||
}, | ||
"homepage": "https://github.com/waltfy/PROTO_TEST#readme", | ||
"dependencies": { | ||
"fetch-factory": "0.1.x" | ||
}, | ||
"devDependencies": { | ||
"fetch-factory": "^0.1.0" | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
npm_and_yarn/spec/fixtures/projects/npm6/empty_version/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "{{ name }}", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no\\ test\ specified\" && exit 1", | ||
"prettify": "prettier --write \"{{packages/*/src,examples,cypress,scripts}/**/,}*.{js,jsx,ts,tsx,css,md}\"" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/waltfy/PROTO_TEST.git" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/waltfy/PROTO_TEST/issues" | ||
}, | ||
"homepage": "https://github.com/waltfy/PROTO_TEST#readme", | ||
"dependencies": { | ||
"fetch-factory": "^0.0.1" | ||
}, | ||
"devDependencies": { | ||
"etag" : "^1.0.0" | ||
}} |
24 changes: 24 additions & 0 deletions
24
npm_and_yarn/spec/fixtures/projects/npm6/exact_version_requirements/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "exact_version_requirements", | ||
"version": "0.0.1", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/gocardless/bump-test.git" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/gocardless/bump-test/issues" | ||
}, | ||
"homepage": "https://github.com/gocardless/bump-test#readme", | ||
"dependencies": { | ||
"chalk": "0.3.0", | ||
"react": "15.3", | ||
"etag": "^1.1.0" | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
npm_and_yarn/spec/fixtures/projects/npm6/flat_resolution/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "test", | ||
"version": "1.0.0", | ||
"description": "An example", | ||
"main": "app.js", | ||
"author": "Example <me@example.com>", | ||
"license": "UNLICENSED", | ||
"private": false, | ||
"flat": true, | ||
"devDependencies": { | ||
"etag": "^1.0.0" | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
npm_and_yarn/spec/fixtures/projects/npm6/git_dependency_branch_version/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
npm_and_yarn/spec/fixtures/projects/npm6/git_dependency_branch_version/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "bump-test", | ||
"version": "0.0.1", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/gocardless/bump-test.git" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/gocardless/bump-test/issues" | ||
}, | ||
"homepage": "https://github.com/gocardless/bump-test#readme", | ||
"dependencies": { | ||
"lodash": "^1.2.1", | ||
"chalk": "0.4.0", | ||
"stopwords": "0.0.1" | ||
}, | ||
"devDependencies": { | ||
"is-number": "https://github.com/jonschlinkert/is-number.git" | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
npm_and_yarn/spec/fixtures/projects/npm6/git_dependency_with_auth/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "bump-test", | ||
"version": "0.0.1", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/gocardless/bump-test.git" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/gocardless/bump-test/issues" | ||
}, | ||
"homepage": "https://github.com/gocardless/bump-test#readme", | ||
"dependencies": { | ||
"lodash": "^1.2.1", | ||
"chalk": "0.4.0", | ||
"stopwords": "0.0.1" | ||
}, | ||
"devDependencies": { | ||
"is-number": "git+https://username:password@github.com:jonschlinkert/is-number.git" | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
npm_and_yarn/spec/fixtures/projects/npm6/github_dependency/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
npm_and_yarn/spec/fixtures/projects/npm6/github_dependency/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "bump-test", | ||
"version": "0.0.1", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/gocardless/bump-test.git" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/gocardless/bump-test/issues" | ||
}, | ||
"homepage": "https://github.com/gocardless/bump-test#readme", | ||
"devDependencies": { | ||
"is-number": "jonschlinkert/is-number#2.0.0" | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
npm_and_yarn/spec/fixtures/projects/npm6/github_dependency_no_ref/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.