Skip to content

Commit

Permalink
wip: try to add lockfile tests for lockfile "id" field
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed Jan 8, 2025
1 parent cf3f12a commit 54bcc5d
Show file tree
Hide file tree
Showing 13 changed files with 110 additions and 11 deletions.
1 change: 1 addition & 0 deletions e2e/pnpm_lockfiles/.bazelignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ projects/a-types/node_modules
projects/b/node_modules
projects/c/node_modules
projects/d/node_modules
projects/peers/node_modules
v54/node_modules/
v60/node_modules/
v61/node_modules/
Expand Down
3 changes: 2 additions & 1 deletion e2e/pnpm_lockfiles/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"@scoped/a": "workspace:*",
"@scoped/b": "link:../projects/b",
"@scoped/c": "file:../projects/c",
"@scoped/d": "../projects/d"
"@scoped/d": "../projects/d",
"@scoped/peers": "../projects/peers"
},
"devDependencies": {
"@aspect-test/b": "5.0.2",
Expand Down
1 change: 1 addition & 0 deletions e2e/pnpm_lockfiles/lockfile-test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def lockfile_test(npm_link_all_packages, name = None):
":node_modules/@scoped/b",
":node_modules/@scoped/c",
":node_modules/@scoped/d",
":node_modules/@scoped/peers",
":node_modules/scoped/bad",

# Packages involving overrides
Expand Down
7 changes: 7 additions & 0 deletions e2e/pnpm_lockfiles/projects/peers/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
load("@aspect_rules_js//js:defs.bzl", "js_library")

js_library(
name = "pkg",
srcs = ["package.json"],
visibility = ["//visibility:public"],
)
15 changes: 15 additions & 0 deletions e2e/pnpm_lockfiles/projects/peers/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "@scoped/peers",
"private": true,
"description": "A package with peer dependencies including: workspace, link, also-in-dev, odd version specifiers",
"peerDependencies": {
"@scoped/a": "workspace:*",
"@scoped/b": "link:../b",
"@scoped/c": "link:../c",
"hello": "https://gitpkg.vercel.app/EqualMa/gitpkg-hello/packages/hello",
"jsonify": "https://github.com/aspect-build/test-packages/releases/download/0.0.0/@foo-jsonify-0.0.0.tgz"
},
"devDependencies": {
"@scoped/c": "link:../c"
}
}
8 changes: 8 additions & 0 deletions e2e/pnpm_lockfiles/v54/pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion e2e/pnpm_lockfiles/v54/snapshots/defs.bzl

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

22 changes: 22 additions & 0 deletions e2e/pnpm_lockfiles/v60/pnpm-lock.yaml

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

6 changes: 3 additions & 3 deletions e2e/pnpm_lockfiles/v60/snapshots/defs.bzl

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

22 changes: 22 additions & 0 deletions e2e/pnpm_lockfiles/v61/pnpm-lock.yaml

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

6 changes: 3 additions & 3 deletions e2e/pnpm_lockfiles/v61/snapshots/defs.bzl

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

22 changes: 22 additions & 0 deletions e2e/pnpm_lockfiles/v90/pnpm-lock.yaml

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

6 changes: 3 additions & 3 deletions e2e/pnpm_lockfiles/v90/snapshots/defs.bzl

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

0 comments on commit 54bcc5d

Please sign in to comment.