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