oxc/tasks/transform_conformance
overlookmotel 97de0b7be1 fix(transformer/class-properties): transform this in static prop initializers (#7481)
Convert `this` in static property initializers to reference to class name.

`class C { static prop = this; }` -> `class C {}; C.prop = C;`
2024-11-25 20:10:05 +00:00
..
snapshots fix(transformer/class-properties): transform this in static prop initializers (#7481) 2024-11-25 20:10:05 +00:00
src feat(transformer): class properties transform (#7011) 2024-11-25 10:24:20 +00:00
tests feat(transformer): transform object rest spread (#7003) 2024-11-21 11:33:26 +00:00
.gitignore chore(transformer_conformance): only ignore root fixtures directory (#7198) 2024-11-08 02:36:22 +00:00
Cargo.toml ci(transformer): move post-transform checker to tasks crate (#6288) 2024-10-05 14:48:37 +00:00
package.json test(transformer): script to amend Babel fixtures (#7122) 2024-11-25 10:24:19 +00:00
README.md
update_fixtures.js test(transformer): script to amend Babel fixtures (#7122) 2024-11-25 10:24:19 +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.