Skip to content

Commit e13f0ff

Browse files
committed
Add ansi escape regex
1 parent c18978c commit e13f0ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/forge/tests/e2e/common/output.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ macro_rules! assert_cleaned_output {
1313
insta::with_settings!({
1414
snapshot_suffix => scarb_version.to_string(),
1515
filters => vec![
16+
(r"\x1B\[[0-?]*[ -/]*[@-~]", ""), // ANSI escape regex - needed for CI
1617
(r"(?m)^\s*(Compiling|Finished|Blocking).*", ""), // scarb output
1718
(r"(?m)^\s*(Collected|Running|Tests:|Latest block number).*", ""), // snforge output
1819
]},

0 commit comments

Comments
 (0)