swc_core::ecma::transforms

Module testing

source
Available on crate feature __ecma and (crate features __ecma_transforms or __testing_transform) and crate feature __testing_transform only.

Modules§

Macros§

Structs§

Functions§

  • Execute node for input and ensure that it prints same output after transformation.
  • Execute jest after transpiling input using tr.
  • Just like babel, walk up the directory tree and find a file named options.json.
  • You can do UPDATE=1 cargo test to update fixtures.