oxc/tasks/transform_conformance
2024-12-23 08:24:54 +00:00
..
overrides fix(transformer/class-properties): run other transforms on static properties, static blocks, and computed keys (#7982) 2024-12-20 10:07:23 +00:00
snapshots feat(transformer): remove typescript symbols after transform (#8069) 2024-12-23 08:24:54 +00:00
src refactor(global): sort imports (#7883) 2024-12-14 15:07:21 +00:00
tests fix(transformer/class-properties): correctly resolve private fields pointing to private methods (#8042) 2024-12-23 03:44:08 +00:00
.gitignore
Cargo.toml
package.json test(transformer): make update fixtures script .mjs (#7892) 2024-12-14 15:29:21 +00:00
README.md
reporter.mjs
update_fixtures.mjs test(transformer): make update fixtures script .mjs (#7892) 2024-12-14 15:29:21 +00:00

Transformation Conformance Test Runner

Execution

This test runner uses the transformation plugin test suite from the Babel repository.

Additional tests are in the tests directory.

The failing test cases are listed in:

To get started, run

cargo run -p oxc_transform_conformance

or watch for changes

just watch 'run -p oxc_transform_conformance'

Options

--filter

To filter for a specific test case, apply the --filter path option, e.g.

cargo run -p oxc_transform_conformance -- --filter react/arrow-functions

--exec

The Babel test suite contains many exec.js files, which need to be executed by a runtime.

bun is the preferred way to execute these tests, which you may install them via https://bun.sh/docs/installation.

Once bun is installed, apply the --exec flag:

cargo run -p oxc_transform_conformance -- --exec

The failing test cases are listed in babel_exec.snap.md.