Skip to content

Commit

Permalink
test(transformer): prevent lint error when running miri (#7873)
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Dec 14, 2024
1 parent 3542b4f commit f39e65e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/oxc_transformer/tests/integrations/es_target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ fn es_target() {
assert_eq!(test(case, &options), Ok(codegen(case, SourceType::mjs())));
}

#[cfg_attr(miri, expect(unused_variables))]
let snapshot =
cases.into_iter().enumerate().fold(String::new(), |mut w, (i, (target, case))| {
let options = TransformOptions::from_target(target).unwrap();
Expand Down

0 comments on commit f39e65e

Please sign in to comment.