oxc/crates
camchenry c35d3f2ea2 test(linter): improve test failure output (#6975)
Improves the test output when a test fails, based on the type of expectation. The output now includes the config that was passed, as well as the source code that failed. Additional formatting makes it a little bit easier to parse.

Before:

<img width="818" alt="Screenshot 2024-10-27 at 11 54 02 PM" src="https://github.com/user-attachments/assets/bac4079c-566a-403b-adde-acdc709baceb">

&nbsp;

<img width="792" alt="Screenshot 2024-10-27 at 11 54 56 PM" src="https://github.com/user-attachments/assets/16074216-00ad-4cdc-9f47-09142242111d">

---

After:

<img width="784" alt="Screenshot 2024-10-27 at 11 49 36 PM" src="https://github.com/user-attachments/assets/5d687562-55f4-4e4f-aa3a-c90b90b714e8">

&nbsp;

<img width="820" alt="Screenshot 2024-10-27 at 11 58 56 PM" src="https://github.com/user-attachments/assets/0725d362-7aed-4fd0-9fab-93a7687aca6d">
2024-10-28 12:55:24 +00:00
..
oxc release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_allocator release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_ast feat(ast_tools): Add #[estree(always_flatten)] to Span (#6935) 2024-10-28 02:13:24 +00:00
oxc_ast_macros release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_cfg release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_codegen release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_data_structures release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_diagnostics feat(rust): use oxc-miette (#6938) 2024-10-27 13:30:20 +00:00
oxc_ecmascript fix(ecmascript): allow getting PropName for object methods (#6967) 2024-10-28 09:34:27 +00:00
oxc_estree release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_index release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_isolated_declarations feat(rust): use oxc-miette (#6938) 2024-10-27 13:30:20 +00:00
oxc_language_server fix(editor): Publish diagnostics on open for all run modes except disabled (#6965) 2024-10-28 08:39:47 +08:00
oxc_linter test(linter): improve test failure output (#6975) 2024-10-28 12:55:24 +00:00
oxc_macros refactor(linter): add run_on_jest_node to run rules on only jest nodes (#6721) 2024-10-21 02:13:58 +00:00
oxc_mangler release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_minifier refactor(minifier): remove Tri, use Option<bool> instead (#6912) 2024-10-26 04:28:34 +00:00
oxc_module_lexer release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_parser perf(parser): check . before [ in parse_member_expression_rest (#6979) 2024-10-28 11:00:28 +00:00
oxc_prettier refactor(rust): remove the annoying clippy::wildcard_imports (#6860) 2024-10-24 13:57:19 +00:00
oxc_regular_expression feat(ast_tools): Add #[estree(always_flatten)] to Span (#6935) 2024-10-28 02:13:24 +00:00
oxc_semantic fix(ecmascript): allow getting PropName for object methods (#6967) 2024-10-28 09:34:27 +00:00
oxc_sourcemap release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_span feat(ast_tools): Add #[estree(always_flatten)] to Span (#6935) 2024-10-28 02:13:24 +00:00
oxc_syntax feat(ast_tools): Default enums to rename_all = "camelCase" (#6933) 2024-10-28 01:39:25 +00:00
oxc_transformer refactor(transformer/react-refresh): small refactor (#6973) 2024-10-28 02:57:55 +00:00
oxc_traverse release(crates): v0.34.0 (#6908) 2024-10-26 09:39:53 +08:00
oxc_wasm fix(types): move @oxc-project/types to dependencies (#6909) 2024-10-26 10:26:54 +08:00