swc/crates
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
..
ast_node chore: Publish crates 2023-06-21 15:44:11 +00:00
better_scoped_tls chore: Publish crates 2023-06-22 13:40:52 +00:00
binding_macros chore: Publish crates 2023-10-29 22:28:09 +00:00
dbg-swc chore: Publish crates 2023-10-29 22:37:25 +00:00
from_variant chore: Publish crates 2023-06-21 15:44:11 +00:00
jsdoc chore: Publish crates 2023-10-25 23:01:44 +00:00
preset_env_base chore: Publish crates 2023-10-24 00:04:34 +00:00
string_enum chore: Publish crates 2023-06-21 15:44:11 +00:00
swc chore: Publish crates 2023-10-29 22:28:09 +00:00
swc_atoms chore: Publish crates 2023-10-08 00:41:50 +00:00
swc_bundler chore: Publish crates 2023-10-29 22:28:09 +00:00
swc_cached chore: Publish crates 2023-10-24 00:04:34 +00:00
swc_cli_impl chore: Publish crates 2023-10-29 22:28:09 +00:00
swc_common chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_compiler_base chore: Publish crates 2023-10-29 22:28:09 +00:00
swc_config chore: Publish crates 2023-06-22 13:40:52 +00:00
swc_config_macro chore: Publish crates 2023-06-21 15:44:11 +00:00
swc_core chore: Publish crates 2023-10-29 22:28:09 +00:00
swc_css chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_css_ast chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_css_codegen chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_css_codegen_macros chore: Publish crates 2023-06-21 15:44:11 +00:00
swc_css_compat chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_css_lints chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_css_minifier chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_css_modules chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_css_parser chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_css_prefixer chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_css_utils chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_css_visit chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_ecma_ast chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_ecma_codegen chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_ecma_codegen_macros chore: Publish crates 2023-06-21 15:44:11 +00:00
swc_ecma_compat_bugfixes feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
swc_ecma_compat_common chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_ecma_compat_es3 feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
swc_ecma_compat_es2015 feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
swc_ecma_compat_es2016 feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
swc_ecma_compat_es2017 chore: Publish crates 2023-10-29 22:28:09 +00:00
swc_ecma_compat_es2018 chore: Publish crates 2023-10-29 22:28:09 +00:00
swc_ecma_compat_es2019 feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
swc_ecma_compat_es2020 chore: Publish crates 2023-10-29 22:28:09 +00:00
swc_ecma_compat_es2021 chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_ecma_compat_es2022 chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_ecma_dep_graph chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_ecma_ext_transforms chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_ecma_lints chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_ecma_loader chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_ecma_minifier chore: Publish crates 2023-10-29 22:28:09 +00:00
swc_ecma_parser chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_ecma_preset_env chore: Publish crates 2023-10-29 22:28:09 +00:00
swc_ecma_quote chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_ecma_quote_macros chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_ecma_testing chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_ecma_transforms feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
swc_ecma_transforms_base chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_ecma_transforms_classes chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_ecma_transforms_compat feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
swc_ecma_transforms_macros chore: Publish crates 2023-08-29 05:06:03 +00:00
swc_ecma_transforms_module feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
swc_ecma_transforms_optimization feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
swc_ecma_transforms_proposal feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
swc_ecma_transforms_react feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
swc_ecma_transforms_testing feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
swc_ecma_transforms_typescript feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
swc_ecma_usage_analyzer chore: Publish crates 2023-10-27 22:23:14 -07:00
swc_ecma_utils chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_ecma_visit chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_ecmascript chore: Publish crates 2023-10-29 22:28:09 +00:00
swc_eq_ignore_macros chore: Publish crates 2023-06-21 15:44:11 +00:00
swc_error_reporters chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_estree_ast chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_estree_compat chore: Publish crates 2023-10-29 22:28:09 +00:00
swc_fast_graph chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_graph_analyzer chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_html chore: Publish crates 2023-10-29 22:28:09 +00:00
swc_html_ast chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_html_codegen chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_html_codegen_macros chore: Publish crates 2023-06-21 15:44:11 +00:00
swc_html_minifier chore: Publish crates 2023-10-29 22:28:09 +00:00
swc_html_parser chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_html_utils chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_html_visit chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_macros_common chore: Publish crates 2023-06-21 15:44:11 +00:00
swc_node_base chore: Publish crates 2022-10-24 03:58:37 +00:00
swc_node_bundler chore: Publish crates 2023-10-29 22:28:09 +00:00
swc_node_comments chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_nodejs_common chore: Publish crates 2023-06-22 13:40:52 +00:00
swc_plugin build(cargo): Update deps (#7564) 2023-06-22 07:40:41 +00:00
swc_plugin_macro chore: Publish crates 2023-06-21 15:44:11 +00:00
swc_plugin_proxy chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_plugin_runner chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_plugin_testing
swc_timer chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_trace_macro chore: Publish crates 2023-06-21 15:44:11 +00:00
swc_visit chore(xtask): Migrate scripts to xtask (#8072) 2023-10-06 14:44:53 +00:00
swc_visit_macros build(cargo): Update rustc to 2023-07-03 (#7623) 2023-07-05 03:50:43 +00:00
swc_xml chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_xml_ast chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_xml_codegen chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_xml_codegen_macros chore: Publish crates 2023-06-21 15:44:11 +00:00
swc_xml_parser chore: Publish crates 2023-10-25 23:01:44 +00:00
swc_xml_visit chore: Publish crates 2023-10-25 23:01:44 +00:00
testing feat(es/testing): Use __swc_snapshots__ for test! macro (#8191) 2023-10-30 10:38:59 +09:00
testing_macros chore: Publish crates 2023-06-22 07:43:38 +00:00