Function swc_core::testing_transform::compare_stdout
source · [−]pub fn compare_stdout<F, P>(syntax: Syntax, tr: F, input: &str) where
F: FnOnce(&mut Tester<'_>) -> P,
P: Fold,
Available on crate feature
__testing_transform
only.Expand description
Execute node
for input
and ensure that it prints same output after
transformation.