Skip to content
8 changes: 7 additions & 1 deletion crates/socket-patch-bench/src/fixtures/npm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,13 @@ pub fn build_yarn_berry(t: &mut Tree, size: Size) -> std::io::Result<Fixture> {
t.write("project/node_modules/.yarn-state.yml", "# Warning: This file is automatically generated. Removing it is fine, but will\n# cause your node_modules installation to become invalidated.\n\n__metadata:\n version: 1\n nmMode: classic\n")?;
g.install_hoisted(t, "project/")?;
t.mkdir("home")?;
Ok(fixture(&g, g.patches(true), &["yarn.lock"], &[]))
// Hosted Berry pins both descriptor resolutions and their lock entries.
Ok(fixture(
&g,
g.patches(true),
&["package.json", "yarn.lock"],
&[],
))
}

// ── bun ────────────────────────────────────────────────────────────────
Expand Down
Loading
Loading