Skip to content

Commit

Permalink
npm: Convert FileParser specs to project fixtures
Browse files Browse the repository at this point in the history
Part of the effort to remove old npm spec fixtures seprated by manifest
type and use project based fixtures.
  • Loading branch information
feelepxyz committed Feb 11, 2021
1 parent 8fd22fa commit 2647e75
Show file tree
Hide file tree
Showing 53 changed files with 4,633 additions and 260 deletions.
351 changes: 91 additions & 260 deletions npm_and_yarn/spec/dependabot/npm_and_yarn/file_parser_spec.rb

Large diffs are not rendered by default.

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

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"
}}
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 npm_and_yarn/spec/fixtures/projects/npm6/duplicate/package.json
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"
}
}
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"
}}
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"
}
}
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"
}
}

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

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"
}
}
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"
}
}

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

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"
}
}

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

Loading

0 comments on commit 2647e75

Please sign in to comment.