From e766051c2d8b1886c66752cf84445f86ce014fd3 Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Sat, 14 Dec 2024 03:16:27 +0000 Subject: [PATCH] test(transformer): skip test which uses filesystem under miri (#7874) Miri does not support filesystem operations. Skip this test which loads snapshot from disk when running under Miri. --- .../tests/integrations/plugins/replace_global_defines.rs | 1 + 1 file changed, 1 insertion(+) 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..2a7c8f9edb6e3 100644 --- a/crates/oxc_transformer/tests/integrations/plugins/replace_global_defines.rs +++ b/crates/oxc_transformer/tests/integrations/plugins/replace_global_defines.rs @@ -237,6 +237,7 @@ console.log( ); } +#[cfg(not(miri))] #[test] fn test_sourcemap() { let config = ReplaceGlobalDefinesConfig::new(&[