Function swc_core::ecma::transforms::testing::test_fixture
source · pub fn test_fixture<P>(
syntax: Syntax,
tr: &dyn Fn(&mut Tester<'_>) -> P,
input: &Path,
output: &Path,
config: FixtureTestConfig
)where
P: Fold,
Available on crate feature
__ecma
and (crate features __ecma_transforms
or __testing_transform
) and crate feature __testing_transform
only.Expand description
You can do UPDATE=1 cargo test
to update fixtures.