swc/crates/swc_ecma_transforms_compat/tests
Donny/강동윤 0aafa75fef
feat(es/testing): Use __swc_snapshots__ for test! macro (#8191)
**Description:**

This implements something similar to `__snapshots__` of `jest`. Instead of storing the expected result as a string literal, we now store it in `$crate/tests/__swc_snapshots__/$path_to_test__$test_name.js`.

**Related issue:**

 - Closes #4509
2023-10-30 10:38:59 +09:00
..
__swc_snapshots__/tests feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
arrow test(ts/compat): Migrate inline tests to fixture testing (#6475) 2022-11-28 04:54:38 +00:00
async-to-generator fix(es/compat): Don't add pure annotations to dummy spans (#8172) 2023-10-23 15:00:35 -07:00
block-scoping fix(es/compat): Use async and await correctly in block-scoping pass (#8056) 2023-10-03 06:02:42 +00:00
class_fields_use_set/basic fix(es/compat): Handle useDefineForClassFields: false (#7055) 2023-03-12 12:56:10 +09:00
classes fix(es/compat): Fix stage 3 decorator pass (#7392) 2023-05-23 06:24:05 +00:00
destructuring/7776 fix(es/compat): Remove wrong logic for object patterns in object_rest (#7788) 2023-08-17 04:01:30 +00:00
for-of test(ts/compat): Migrate inline tests to fixture testing (#6475) 2022-11-28 04:54:38 +00:00
new-target fix(es/helpers): Use snake_case for helpers (#7147) 2023-03-31 15:15:21 +09:00
object-rest-spread fix(es/compat): Remove wrong logic for object patterns in object_rest (#7788) 2023-08-17 04:01:30 +00:00
optional-chaining feat(es/compat): Support pure_getters for optional_chaining (#7933) 2023-09-13 02:03:41 +00:00
optional-chaining-loose feat(es/compat): Support pure_getters for optional_chaining (#7933) 2023-09-13 02:03:41 +00:00
parameters fix(es/compat): Fix is_setter in parameters pass (#7348) 2023-05-02 02:11:42 +00:00
private-in-object fix(es/helpers): Use snake_case for helpers (#7147) 2023-03-31 15:15:21 +09:00
shorthand_properties fix(es/compat): Handle __proto__ edge case in shorthand pass (#8077) 2023-10-10 04:08:45 +00:00
static-blocks feat(es/compat): Skip empty class static blocks (#8138) 2023-10-18 17:58:02 +00:00
class_fields_use_set.rs build(cargo): Update rustc to nightly-2023-03-20 (#7170) 2023-03-30 08:06:02 +00:00
es2015_arrow.rs feat(es/testing): Support babel-like fixture testing officially (#8190) 2023-10-30 07:24:49 +09:00
es2015_block_scoping.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2015_classes.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2015_computed_props.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2015_destructuring.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2015_duplicated_keys.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2015_for_of.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2015_generator.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2015_new_target.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2015_object_super.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2015_parameters.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2015_shorthand_propertie.rs fix(es/compat): Handle __proto__ edge case in shorthand pass (#8077) 2023-10-10 04:08:45 +00:00
es2015_spread.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2015_template_literals.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2017_async_to_generator.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2018_object_rest_spread.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2020_nullish_coalescing.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2020_optional_chaining.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2021_logcal_assignments.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2022_class_properties.rs feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
es2022_private_in_object.rs build(cargo): Update rustc to nightly-2023-03-20 (#7170) 2023-03-30 08:06:02 +00:00
es2022_static_blocks.rs build(cargo): Update rustc to nightly-2023-03-20 (#7170) 2023-03-30 08:06:02 +00:00