Skip to content

Commit 329b146

Browse files
committed
test: align Berry benchmarks with descriptor resolutions
1 parent 2be10e5 commit 329b146

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • crates/socket-patch-bench/src/fixtures

‎crates/socket-patch-bench/src/fixtures/npm.rs‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,13 @@ pub fn build_yarn_berry(t: &mut Tree, size: Size) -> std::io::Result<Fixture> {
623623
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")?;
624624
g.install_hoisted(t, "project/")?;
625625
t.mkdir("home")?;
626-
Ok(fixture(&g, g.patches(true), &["yarn.lock"], &[]))
626+
// Hosted Berry pins both descriptor resolutions and their lock entries.
627+
Ok(fixture(
628+
&g,
629+
g.patches(true),
630+
&["package.json", "yarn.lock"],
631+
&[],
632+
))
627633
}
628634

629635
// ── bun ────────────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)