Skip to content

Commit

Permalink
[skip ci] yolo
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Jul 18, 2024
1 parent 376923e commit bd9dd48
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/cli_bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ tracing-subscriber = { version = "0.3", default-features = false, optional = tru
serde_json = "1.0.96"
tempfile = "3.1"
rayon = "1.8.0"
insta = { version = "1.30.0", features = ["yaml", "redactions"] }
insta = { version = "1.30.0", features = ["yaml", "redactions", "filters"] }
predicates = "3.0.3"
fs_extra = "1.3"
ntest = "0.9.0"
Expand Down
6 changes: 5 additions & 1 deletion crates/cli_bin/tests/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1708,7 +1708,11 @@ fn output_jsonl() -> Result<()> {
);

let content = fs_err::read_to_string(dir.join("output.jsonl"))?;
assert_snapshot!(content);
insta::with_settings!({filters => vec![
(r"\b[[:xdigit:]]{8}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{12}\b", "[UUID]"),
]}, {
assert_snapshot!(content);
});

let line_count = content.lines().count();
assert_eq!(line_count, 3);
Expand Down
Loading

0 comments on commit bd9dd48

Please sign in to comment.