Skip to content

Commit

Permalink
update smoke tests for upgrading from npm6 to npm9
Browse files Browse the repository at this point in the history
  • Loading branch information
kbukum1 committed Oct 9, 2024
1 parent bfc4e64 commit 2f778cf
Show file tree
Hide file tree
Showing 5 changed files with 1,455 additions and 1,550 deletions.
102 changes: 30 additions & 72 deletions tests/smoke-npm-group-multidir.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ input:
- '@dependabot/dummy-pkg-a'
- '@dependabot/dummy-pkg-b'
- left-pad
experiments:
npm_fallback_version_above_v6: true
ignore-conditions:
- dependency-name: '@dependabot/dummy-pkg-b'
source: tests/smoke-npm-group-multidir.yaml
Expand Down Expand Up @@ -67,19 +69,15 @@ output:
groups:
- dependencies
requirement: ^1.0.0
source:
type: registry
url: https://registry.npmjs.org
source: null
version: 1.0.0
- name: left-pad
requirements:
- file: package.json
groups:
- dependencies
requirement: ^1.0.0
source:
type: registry
url: https://registry.npmjs.org
source: null
version: 1.0.0
- name: '@dependabot/dummy-pkg-a'
requirements: []
Expand All @@ -90,19 +88,15 @@ output:
groups:
- dependencies
requirement: ^1.0.0
source:
type: registry
url: https://registry.npmjs.org
source: null
version: 1.0.0
- name: left-pad
requirements:
- file: package.json
groups:
- dependencies
requirement: ^1.0.0
source:
type: registry
url: https://registry.npmjs.org
source: null
version: 1.0.0
dependency_files:
- /npm/multi-dir/foo/package.json
Expand All @@ -120,18 +114,14 @@ output:
groups:
- dependencies
requirement: ^1.0.0
source:
type: registry
url: https://registry.npmjs.org
source: null
previous-version: 1.0.0
requirements:
- file: package.json
groups:
- dependencies
requirement: ^1.0.0
source:
type: registry
url: https://registry.npmjs.org
source: null
version: 1.1.0
directory: /npm/multi-dir/foo
- name: left-pad
Expand All @@ -140,18 +130,14 @@ output:
groups:
- dependencies
requirement: ^1.0.0
source:
type: registry
url: https://registry.npmjs.org
source: null
previous-version: 1.0.0
requirements:
- file: package.json
groups:
- dependencies
requirement: ^1.0.0
source:
type: registry
url: https://registry.npmjs.org
source: null
version: 1.3.0
directory: /npm/multi-dir/foo
- name: '@dependabot/dummy-pkg-a'
Expand All @@ -166,18 +152,14 @@ output:
groups:
- dependencies
requirement: ^1.0.0
source:
type: registry
url: https://registry.npmjs.org
source: null
previous-version: 1.0.0
requirements:
- file: package.json
groups:
- dependencies
requirement: ^1.0.0
source:
type: registry
url: https://registry.npmjs.org
source: null
version: 1.3.0
directory: /npm/multi-dir/bar
- name: '@dependabot/dummy-pkg-a'
Expand All @@ -186,55 +168,41 @@ output:
groups:
- dependencies
requirement: ^1.0.0
source:
type: registry
url: https://registry.npmjs.org
source: null
previous-version: 1.0.0
requirements:
- file: package.json
groups:
- dependencies
requirement: ^1.0.0
source:
type: registry
url: https://registry.npmjs.org
source: null
version: 1.1.0
directory: /npm/multi-dir/bar
updated-dependency-files:
- content: |
{
"name": "foo",
"version": "1.0.0",
"lockfileVersion": 3,
"lockfileVersion": 1,
"requires": true,
"packages": {
"": {
"name": "foo",
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"@dependabot/dummy-pkg-b": "^1.0.0",
"left-pad": "^1.0.0"
}
},
"node_modules/@dependabot/dummy-pkg-a": {
"dependencies": {
"@dependabot/dummy-pkg-a": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@dependabot/dummy-pkg-a/-/dummy-pkg-a-2.0.0.tgz",
"integrity": "sha512-kUkqhjyK+9PgJMiwoBrkfX7NTkZiw2s94gGnSRSP1ZFaoBqpwTuvQbZhDCa+mKPgpP5719qsW2YzuSK4RXhGAg=="
},
"node_modules/@dependabot/dummy-pkg-b": {
"@dependabot/dummy-pkg-b": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@dependabot/dummy-pkg-b/-/dummy-pkg-b-1.1.0.tgz",
"integrity": "sha512-6r/5iuUs49Hln9Dl05waRoyzgkY9gwt8Yaa5SlhDmM5c2LwJ8tIG23+690FlXSUZ9c6xmOeuhHbcXGBMXsawbw==",
"dependencies": {
"requires": {
"@dependabot/dummy-pkg-a": "^2.0.0"
}
},
"node_modules/left-pad": {
"left-pad": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz",
"integrity": "sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==",
"deprecated": "use String.prototype.padStart()"
"integrity": "sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA=="
}
}
}
Expand All @@ -249,28 +217,18 @@ output:
{
"name": "bar",
"version": "1.0.0",
"lockfileVersion": 3,
"lockfileVersion": 1,
"requires": true,
"packages": {
"": {
"name": "bar",
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"@dependabot/dummy-pkg-a": "^1.0.0",
"left-pad": "^1.0.0"
}
},
"node_modules/@dependabot/dummy-pkg-a": {
"dependencies": {
"@dependabot/dummy-pkg-a": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@dependabot/dummy-pkg-a/-/dummy-pkg-a-1.1.0.tgz",
"integrity": "sha512-mjJzV5MdCP389oz3J0j3CiOZjF6h0R+36HqhG0Rl4Y0uCj0xdX+r0QboLZBugPwb7yBxrRHs6ZIe8J182r9Ssw=="
},
"node_modules/left-pad": {
"left-pad": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz",
"integrity": "sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==",
"deprecated": "use String.prototype.padStart()"
"integrity": "sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA=="
}
}
}
Expand All @@ -283,8 +241,8 @@ output:
type: file
pr-title: Bump the npm_and_yarn group across 2 directories with 3 updates
pr-body: |
Bumps the npm_and_yarn group with 2 updates in the /npm/multi-dir/foo directory: @dependabot/dummy-pkg-b and [left-pad](https://github.com/stevemao/left-pad).
Bumps the npm_and_yarn group with 2 updates in the /npm/multi-dir/bar directory: [left-pad](https://github.com/stevemao/left-pad) and @dependabot/dummy-pkg-a.
Bumps the npm_and_yarn group with 1 update in the /npm/multi-dir/foo directory: @dependabot/dummy-pkg-b.
Bumps the npm_and_yarn group with 1 update in the /npm/multi-dir/bar directory: [left-pad](https://github.com/stevemao/left-pad).
Updates `@dependabot/dummy-pkg-b` from 1.0.0 to 1.1.0
Expand Down Expand Up @@ -312,8 +270,8 @@ output:
commit-message: |-
Bump the npm_and_yarn group across 2 directories with 3 updates
Bumps the npm_and_yarn group with 2 updates in the /npm/multi-dir/foo directory: @dependabot/dummy-pkg-b and [left-pad](https://github.com/stevemao/left-pad).
Bumps the npm_and_yarn group with 2 updates in the /npm/multi-dir/bar directory: [left-pad](https://github.com/stevemao/left-pad) and @dependabot/dummy-pkg-a.
Bumps the npm_and_yarn group with 1 update in the /npm/multi-dir/foo directory: @dependabot/dummy-pkg-b.
Bumps the npm_and_yarn group with 1 update in the /npm/multi-dir/bar directory: [left-pad](https://github.com/stevemao/left-pad).
Updates `@dependabot/dummy-pkg-b` from 1.0.0 to 1.1.0
Expand Down
Loading

0 comments on commit 2f778cf

Please sign in to comment.