Skip to content

Commit

Permalink
fix: fixed pnpm test setup with proper symlinks handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz-pluszczewski committed Dec 27, 2024
1 parent ea29f8a commit 368b25f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 33 deletions.
1 change: 1 addition & 0 deletions test/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export const pnpmFixture = test.extend<TestContext>({
);
await fs.cp(path.resolve(TEST_PROJECTS_DIRECTORY, "pnpm"), testDirectory, {
recursive: true,
verbatimSymlinks: true,
});

await use(testDirectory);
Expand Down
66 changes: 33 additions & 33 deletions test/test/__snapshots__/pnpm-production.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"whitelist": [
{
"packageName": "@eslint-community/[email protected]",
"packagePath": "/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected][email protected]/node_modules/@eslint-community/eslint-utils",
"packagePath": "<TEST_DIR>/node_modules/.pnpm/@[email protected][email protected]/node_modules/@eslint-community/eslint-utils",
"status": "whitelist",
"licenses": [
{
Expand Down Expand Up @@ -30,14 +30,14 @@
}
],
"licensePath": [
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected][email protected]/node_modules/@eslint-community/eslint-utils/package.json",
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected][email protected]/node_modules/@eslint-community/eslint-utils/LICENSE"
"<TEST_DIR>/node_modules/.pnpm/@[email protected][email protected]/node_modules/@eslint-community/eslint-utils/package.json",
"<TEST_DIR>/node_modules/.pnpm/@[email protected][email protected]/node_modules/@eslint-community/eslint-utils/LICENSE"
],
"verificationStatus": "ok"
},
{
"packageName": "@eslint-community/[email protected]",
"packagePath": "/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint-community/regexpp",
"packagePath": "<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint-community/regexpp",
"status": "whitelist",
"licenses": [
{
Expand Down Expand Up @@ -65,14 +65,14 @@
}
],
"licensePath": [
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint-community/regexpp/package.json",
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint-community/regexpp/LICENSE"
"<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint-community/regexpp/package.json",
"<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint-community/regexpp/LICENSE"
],
"verificationStatus": "ok"
},
{
"packageName": "@eslint/[email protected]",
"packagePath": "/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint/config-array",
"packagePath": "<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint/config-array",
"status": "whitelist",
"licenses": [
{
Expand Down Expand Up @@ -106,14 +106,14 @@
}
],
"licensePath": [
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint/config-array/package.json",
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint/config-array/LICENSE"
"<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint/config-array/package.json",
"<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint/config-array/LICENSE"
],
"verificationStatus": "ok"
},
{
"packageName": "@eslint/[email protected]",
"packagePath": "/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint/core",
"packagePath": "<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint/core",
"status": "whitelist",
"licenses": [
{
Expand Down Expand Up @@ -147,14 +147,14 @@
}
],
"licensePath": [
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint/core/package.json",
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint/core/LICENSE"
"<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint/core/package.json",
"<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint/core/LICENSE"
],
"verificationStatus": "ok"
},
{
"packageName": "@eslint/[email protected]",
"packagePath": "/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint/eslintrc",
"packagePath": "<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint/eslintrc",
"status": "whitelist",
"licenses": [
{
Expand Down Expand Up @@ -182,14 +182,14 @@
}
],
"licensePath": [
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint/eslintrc/package.json",
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint/eslintrc/LICENSE"
"<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint/eslintrc/package.json",
"<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint/eslintrc/LICENSE"
],
"verificationStatus": "ok"
},
{
"packageName": "@eslint/[email protected]",
"packagePath": "/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint/js",
"packagePath": "<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint/js",
"status": "whitelist",
"licenses": [
{
Expand Down Expand Up @@ -217,14 +217,14 @@
}
],
"licensePath": [
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint/js/package.json",
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint/js/LICENSE"
"<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint/js/package.json",
"<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint/js/LICENSE"
],
"verificationStatus": "ok"
},
{
"packageName": "@eslint/[email protected]",
"packagePath": "/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint/object-schema",
"packagePath": "<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint/object-schema",
"status": "whitelist",
"licenses": [
{
Expand Down Expand Up @@ -258,14 +258,14 @@
}
],
"licensePath": [
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint/object-schema/package.json",
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint/object-schema/LICENSE"
"<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint/object-schema/package.json",
"<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint/object-schema/LICENSE"
],
"verificationStatus": "ok"
},
{
"packageName": "@eslint/[email protected]",
"packagePath": "/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint/plugin-kit",
"packagePath": "<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint/plugin-kit",
"status": "whitelist",
"licenses": [
{
Expand Down Expand Up @@ -299,8 +299,8 @@
}
],
"licensePath": [
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint/plugin-kit/package.json",
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/@[email protected]/node_modules/@eslint/plugin-kit/LICENSE"
"<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint/plugin-kit/package.json",
"<TEST_DIR>/node_modules/.pnpm/@[email protected]/node_modules/@eslint/plugin-kit/LICENSE"
],
"verificationStatus": "ok"
},
Expand Down Expand Up @@ -1041,7 +1041,7 @@
},
{
"packageName": "[email protected]",
"packagePath": "/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/[email protected]/node_modules/eslint",
"packagePath": "<TEST_DIR>/node_modules/.pnpm/[email protected]/node_modules/eslint",
"status": "whitelist",
"licenses": [
{
Expand Down Expand Up @@ -1069,14 +1069,14 @@
}
],
"licensePath": [
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/[email protected]/node_modules/eslint/package.json",
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/[email protected]/node_modules/eslint/LICENSE"
"<TEST_DIR>/node_modules/.pnpm/[email protected]/node_modules/eslint/package.json",
"<TEST_DIR>/node_modules/.pnpm/[email protected]/node_modules/eslint/LICENSE"
],
"verificationStatus": "ok"
},
{
"packageName": "[email protected]",
"packagePath": "/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/[email protected]/node_modules/eslint-scope",
"packagePath": "<TEST_DIR>/node_modules/.pnpm/[email protected]/node_modules/eslint-scope",
"status": "whitelist",
"licenses": [
{
Expand Down Expand Up @@ -1104,14 +1104,14 @@
}
],
"licensePath": [
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/[email protected]/node_modules/eslint-scope/package.json",
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/[email protected]/node_modules/eslint-scope/LICENSE"
"<TEST_DIR>/node_modules/.pnpm/[email protected]/node_modules/eslint-scope/package.json",
"<TEST_DIR>/node_modules/.pnpm/[email protected]/node_modules/eslint-scope/LICENSE"
],
"verificationStatus": "ok"
},
{
"packageName": "[email protected]",
"packagePath": "/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/[email protected]/node_modules/eslint-visitor-keys",
"packagePath": "<TEST_DIR>/node_modules/.pnpm/[email protected]/node_modules/eslint-visitor-keys",
"status": "whitelist",
"licenses": [
{
Expand Down Expand Up @@ -1145,8 +1145,8 @@
}
],
"licensePath": [
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/[email protected]/node_modules/eslint-visitor-keys/package.json",
"/Users/lukasz/Dev/brainhub/license-auditor/license-auditor/test/testProjects/pnpm/node_modules/.pnpm/[email protected]/node_modules/eslint-visitor-keys/LICENSE"
"<TEST_DIR>/node_modules/.pnpm/[email protected]/node_modules/eslint-visitor-keys/package.json",
"<TEST_DIR>/node_modules/.pnpm/[email protected]/node_modules/eslint-visitor-keys/LICENSE"
],
"verificationStatus": "ok"
},
Expand Down

0 comments on commit 368b25f

Please sign in to comment.