swc_core::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,
Available on crate feature __ecma and (crate features __ecma_transforms or __testing_transform) and crate feature __testing_transform only.
Expand description

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