oxc/tasks/transform_conformance
2024-04-18 18:56:29 +08:00
..
src fix(transformer): TypeScriptOptions deserialize should fallback to default (#3012) 2024-04-17 16:27:50 +08:00
tests fix(transformer): fix incorrect jsx whitespace text handling (#2969) 2024-04-14 18:40:40 +08:00
babel.snap.md feat(transformer/typescript): report error for export = <value> (#3021) 2024-04-18 18:56:29 +08:00
babel_exec.snap.md feat(transformer): implement react-jsx-source (#2948) 2024-04-12 20:21:54 +08:00
Cargo.toml feat(transformer): add transform-typescript boilerplate (#2866) 2024-03-30 20:48:35 +08:00
oxc.snap.md fix(transformer): fix incorrect jsx whitespace text handling (#2969) 2024-04-14 18:40:40 +08:00
oxc_exec.snap.md feat(tasks/transforme_conformance): support for testing oxc's test cases (#2835) 2024-03-27 14:14:15 +08:00
README.md
typescript.snap.md feat(transformer/typescript): support for transform enum (#2997) 2024-04-16 14:39:37 +08:00

Transformation Conformance Test Runner

Execution

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

The failing test cases are listed in ./babel.snap.md

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, they 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.