swc_ecma_transforms_testing

Function test_transform

source
pub fn test_transform<F, P>(
    syntax: Syntax,
    is_module: Option<bool>,
    tr: F,
    input: &str,
    expected: &str,
)
where F: FnOnce(&mut Tester<'_>) -> P, P: Pass,