swc_ecma_transforms_testing

Function test_fixture

Source
pub fn test_fixture<P>(
    syntax: Syntax,
    tr: &dyn Fn(&mut Tester<'_>) -> P,
    input: &Path,
    output: &Path,
    config: FixtureTestConfig,
)
where P: Pass,
Expand description

You can do UPDATE=1 cargo test to update fixtures.