Skip to content

Commit

Permalink
test(transformer): transformer conformance runner --override output…
Browse files Browse the repository at this point in the history
… with spaces not tabs (#7865)

When running `just test-transform --override`, generate override files with indentation as double spaces, instead of tabs. This matches our convention for formatting JS files.
  • Loading branch information
overlookmotel committed Dec 14, 2024
1 parent 53e2bc0 commit 588df9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/transform_conformance/src/test_case.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ impl TestCase {
return;
};
fs::create_dir_all(override_output_path.parent().unwrap()).unwrap();
fs::write(&override_output_path, self.transformed_code.clone()).unwrap();
let transformed_code = self.transformed_code.cow_replace("\t", " ");
fs::write(&override_output_path, transformed_code.as_bytes()).unwrap();
}

pub fn skip_test_case(&self) -> bool {
Expand Down

0 comments on commit 588df9f

Please sign in to comment.