oxc/tasks/transform_conformance/src
overlookmotel ca02c16f8f test(transformer): handle more exec tests (#8493)
Some of Babel's exec tests contain a return statement at top level, in order to return a Promise.

e.g. ad572fd1a1/packages/babel-plugin-transform-private-methods/test/fixtures/private-method-loose/async/exec.js

These test files could not be parsed due to illegal position of `return`, and the tests were silently excluded.

This PR:

1. Includes those tests by passing `allow_return_outside_function: true` option to parser for exec tests.
2. Includes a "transform error" message in snapshot for any exec tests which produce errors in parser/transformer.
2025-01-15 02:07:04 +00:00
..
constants.rs chore(transformer): enable Babel's private-property-in-property plugin tests (#8201) 2024-12-31 12:30:57 +00:00
driver.rs test(transformer): handle more exec tests (#8493) 2025-01-15 02:07:04 +00:00
exec.rs feat(transform_conformance): custom reporter for exec test (#7715) 2024-12-07 11:25:00 +00:00
lib.rs chore(tasks/transform-conformance): support --override flag (#7774) 2024-12-11 16:18:16 +00:00
main.rs chore(tasks/transform-conformance): support --override flag (#7774) 2024-12-11 16:18:16 +00:00
test_case.rs test(transformer): handle more exec tests (#8493) 2025-01-15 02:07:04 +00:00