diff --git a/crates/swc/tests/exec.rs b/crates/swc/tests/exec.rs index eaee2ad8d0a5..cdef3b9fd055 100644 --- a/crates/swc/tests/exec.rs +++ b/crates/swc/tests/exec.rs @@ -144,14 +144,7 @@ fn create_matrix(entry: &Path) -> Vec { }) .matrix_bool() .matrix_bool() - .matrix(|| { - vec![ - SourceMapsConfig::Bool(false), - SourceMapsConfig::Bool(true), - SourceMapsConfig::Inline, - SourceMapsConfig::Linked, - ] - }) + .matrix_bool() .into_iter() .map( |((((target, syntax), minify), external_helpers), source_maps)| { @@ -193,15 +186,12 @@ fn create_matrix(entry: &Path) -> Vec { minify: minify.into(), ..Default::default() }, - source_map_path: if source_maps.enabled() { - Some(entry.with_extension(format!( - "{}.map", - entry.extension().unwrap().to_string_lossy(), - ))) + source_map_path: None, + source_maps: if source_maps { + Some(SourceMapsConfig::Inline) } else { None }, - source_maps: Some(source_maps), ..Default::default() } },