You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(pm): add eggjs/egg next branch smoke to Windows e2e
Windows has been unstable lately; mirror the Linux bash e2e case
for `utoo install --from pnpm` on eggjs/egg (next) so we catch
Windows-specific regressions in pnpm migration + workspace install
at the same cadence as Linux/macOS.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
if ($LASTEXITCODE-ne0) { throw"utoo install --from pnpm failed for eggjs/egg" }
318
+
319
+
# Verify workspaces field was added to package.json
320
+
node -e "const pkg = require('./package.json'); const ws = pkg.workspaces; if (!ws || !Array.isArray(ws)) throw new Error('workspaces not set'); if (!ws.includes('packages/*')) throw new Error('missing packages/*'); console.log(' workspaces:', ws.length, 'patterns');"
321
+
if ($LASTEXITCODE-ne0) { throw"workspaces field verification failed" }
322
+
323
+
# Verify overrides were added
324
+
node -e "const pkg = require('./package.json'); if (!pkg.overrides) throw new Error('overrides not set'); if (!pkg.overrides.vite) throw new Error('vite override missing'); console.log(' overrides:', Object.keys(pkg.overrides).length, 'entries');"
325
+
if ($LASTEXITCODE-ne0) { throw"overrides field verification failed" }
326
+
327
+
# Verify .utoo.toml was created with catalogs
328
+
if (-not (Test-Path".utoo.toml")) { throw".utoo.toml not created" }
329
+
$tomlContent=Get-Content .utoo.toml -Raw
330
+
if ($tomlContent-notmatch'lodash') { throw"catalog missing lodash" }
331
+
if ($tomlContent-notmatch'path-to-regexp') { throw"named catalog missing" }
332
+
333
+
# Verify node_modules was created (install ran successfully)
334
+
if (-not (Test-Path"node_modules")) { throw"node_modules not created" }
0 commit comments