Skip to content

Commit

Permalink
fix: revert some changes to tests (#9310)
Browse files Browse the repository at this point in the history
### Description

#9302 merged a little too early, so reverting some of the changes.
Namely, we don't need the `test` -> `test-data` renaming anymore

### Testing Instructions

<!--
  Give a quick description of steps to test your changes.
-->
  • Loading branch information
NicholasLYang authored Oct 22, 2024
1 parent 6b9be42 commit 54357a9
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions crates/turborepo-lib/src/process/child.rs
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,7 @@ mod test {
while !root.join_component(".git").exists() {
root = root.parent().unwrap().to_owned();
}
println!("root: {root:?}");
root.join_components(&["crates", "turborepo-lib", "test-data", "scripts"])
root.join_components(&["crates", "turborepo-lib", "test", "scripts"])
}

#[test_case(false)]
Expand Down
2 changes: 1 addition & 1 deletion crates/turborepo-lib/src/process/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ mod test {

fn get_script_command(script_name: &str) -> Command {
let mut cmd = Command::new("node");
cmd.args([format!("./test-data/scripts/{script_name}")]);
cmd.args([format!("./test/scripts/{script_name}")]);
cmd
}

Expand Down

0 comments on commit 54357a9

Please sign in to comment.