Skip to content

Commit 03f7192

Browse files
committed
fix(snap): use foo/pnpm-workspace.yaml path for subpath migration test
The subpath migration creates pnpm-workspace.yaml inside the foo/ subdirectory, not the test root. Fixes musl CI failure caused by different cat error message format between Alpine and glibc.
1 parent f10170d commit 03f7192

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

packages/cli/snap-tests-global/migration-subpath/snap.txt

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,18 @@ export default defineConfig({
3737
> git config --local core.hooksPath || echo 'core.hooksPath is not set' # should NOT be set
3838
core.hooksPath is not set
3939

40-
[1]> cat pnpm-workspace.yaml # check pnpm-workspace.yaml has overrides and catalog
41-
cat: pnpm-workspace.yaml: No such file or directory
40+
> cat foo/pnpm-workspace.yaml # check pnpm-workspace.yaml has overrides and catalog
41+
catalog:
42+
vite: npm:@voidzero-dev/vite-plus-core@latest
43+
vitest: npm:@voidzero-dev/vite-plus-test@latest
44+
vite-plus: latest
45+
overrides:
46+
vite: 'catalog:'
47+
vitest: 'catalog:'
48+
peerDependencyRules:
49+
allowAny:
50+
- vite
51+
- vitest
52+
allowedVersions:
53+
vite: '*'
54+
vitest: '*'

packages/cli/snap-tests-global/migration-subpath/steps.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"cat foo/package.json # check package.json",
99
"cat foo/vite.config.ts # check vite.config.ts",
1010
"git config --local core.hooksPath || echo 'core.hooksPath is not set' # should NOT be set",
11-
"cat pnpm-workspace.yaml # check pnpm-workspace.yaml has overrides and catalog"
11+
"cat foo/pnpm-workspace.yaml # check pnpm-workspace.yaml has overrides and catalog"
1212
]
1313
}

0 commit comments

Comments
 (0)