Skip to content

Commit

Permalink
chore: normalize Windows paths in plugin tests (#4362)
Browse files Browse the repository at this point in the history
  • Loading branch information
arendjr authored Oct 21, 2024
1 parent d66cfaf commit 6de9422
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/biome_plugin_loader/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ mod test {
fn snap_diagnostic(test_name: &str, diagnostic: Error) {
let content = print_diagnostic_to_string(&diagnostic);

// Normalize Windows paths...
let content = content.replace('\\', "/");

insta::with_settings!({
prepend_module_to_snapshot => false,
}, {
Expand Down

0 comments on commit 6de9422

Please sign in to comment.