From d5741ff38338285c5ffe73864b09294ea908ac1b Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Fri, 13 Dec 2024 11:26:12 +0900 Subject: [PATCH] test: failing test --- .../tests/integrations/plugins/replace_global_defines.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/oxc_transformer/tests/integrations/plugins/replace_global_defines.rs b/crates/oxc_transformer/tests/integrations/plugins/replace_global_defines.rs index 4086f8495343b..11bf0b02b9874 100644 --- a/crates/oxc_transformer/tests/integrations/plugins/replace_global_defines.rs +++ b/crates/oxc_transformer/tests/integrations/plugins/replace_global_defines.rs @@ -283,3 +283,10 @@ log(__MEMBER__); let snapshot = visualizer.into_visualizer_text(); insta::assert_snapshot!("test_sourcemap", snapshot); } + +#[test] +#[should_panic] +fn test_complex() { + let config = ReplaceGlobalDefinesConfig::new(&[("__DEF__", "((() => {})())")]).unwrap(); + test("__DEF__", "1", config.clone()); +}