swc_ecma_transforms_testing

Function compare_stdout

Source
pub fn compare_stdout<F, P>(syntax: Syntax, tr: F, input: &str)
where F: FnOnce(&mut Tester<'_>) -> P, P: Pass,
Expand description

Execute node for input and ensure that it prints same output after transformation.