Skip to content

Commit 180e84f

Browse files
elrrrrrrrclaude
andcommitted
test: fix link test to use GLOBAL_NODE_MODULES constant
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent da60b1d commit 180e84f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

crates/pm/src/cmd/link.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ mod tests {
140140

141141
// create fake global package dir with package.json
142142
let pkg_name = "lib-a";
143-
let global_pkg_dir = global.join("lib/node_modules").join(pkg_name);
143+
let global_pkg_dir = global
144+
.join(crate::util::platform_const::GLOBAL_NODE_MODULES)
145+
.join(pkg_name);
144146
fs::create_dir_all(&global_pkg_dir).unwrap();
145147
let pkg_json = format!(
146148
r#"{{

0 commit comments

Comments
 (0)