swc_core::ecma::transforms::testing

Function exec_tr

source
pub fn exec_tr<F, P>(_test_name: &str, 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 jest after transpiling input using tr.