Skip to content

Commit 6fae651

Browse files
committed
fix: normalize snaphots
1 parent 3aca152 commit 6fae651

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

crates/pg_typecheck/tests/diagnostics.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,17 @@ async fn test(name: &str, query: &str, setup: &str) {
4242
.unwrap();
4343

4444
let content = String::from_utf8(content).unwrap();
45+
46+
// Normalize line endings
47+
let normalized_content = content.replace("\r\n", "\n");
48+
49+
// Replace Windows-style path separators with forward slashes
50+
let normalized_content = normalized_content.replace("\\", "/");
51+
4552
insta::with_settings!({
4653
prepend_module_to_snapshot => false,
4754
}, {
48-
insta::assert_snapshot!(name, content);
55+
insta::assert_snapshot!(name, normalized_content);
4956
});
5057
}
5158

0 commit comments

Comments
 (0)