Skip to content

Commit c699754

Browse files
committed
Run the pnpm safety e2e gets in agent mode
get defaults to hosted mode since 5e5f5ed, so the three pnpm safety tests ran a hosted redirect and found proj_a's installed copy unpatched and no pnpm-layout note. They test the in-place apply path, so pass --mode agent. These e2e-tier tests had not run since that change because a red base test skipped the tier. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AfGnDQMy2FvpExneXmR1qp
1 parent b9286f9 commit c699754

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎crates/socket-patch-cli/tests/e2e_safety_pnpm.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ fn apply_in_a_does_not_mutate_b_or_store() {
293293
};
294294

295295
// -- get + apply in proj_a only ----------------------------------
296-
assert_run_ok(&fx.proj_a, &["get", NPM_UUID], "socket-patch get");
296+
assert_run_ok(&fx.proj_a, &["get", NPM_UUID, "--mode", "agent"], "socket-patch get");
297297

298298
// proj_a is patched.
299299
assert_eq!(
@@ -397,7 +397,7 @@ fn pnpm_install_in_b_does_not_revert_a() {
397397
store_id
398398
};
399399

400-
assert_run_ok(&fx.proj_a, &["get", NPM_UUID], "socket-patch get");
400+
assert_run_ok(&fx.proj_a, &["get", NPM_UUID, "--mode", "agent"], "socket-patch get");
401401
assert_eq!(git_sha256_file(&index_a), AFTER_HASH);
402402

403403
// Re-run pnpm install in proj_b with frozen lockfile — this
@@ -475,7 +475,7 @@ fn apply_in_pnpm_project_emits_layout_note() {
475475
let root = tempfile::tempdir().unwrap();
476476
let fx = setup_two_pnpm_projects(root.path());
477477

478-
let (_stdout, stderr) = assert_run_ok(&fx.proj_a, &["get", NPM_UUID], "socket-patch get");
478+
let (_stdout, stderr) = assert_run_ok(&fx.proj_a, &["get", NPM_UUID, "--mode", "agent"], "socket-patch get");
479479

480480
// The exact phrasing is a stable contract. A bare `contains("pnpm")`
481481
// is worthless here — every pnpm store path printed on stderr

0 commit comments

Comments
 (0)