Skip to content

Commit

Permalink
test(swc): Revert the extension of exec test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
realtimetodie committed Jan 23, 2023
1 parent a68dc8d commit 8aa2c05
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions crates/swc/tests/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,7 @@ fn create_matrix(entry: &Path) -> Vec<Options> {
})
.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)| {
Expand Down Expand Up @@ -193,15 +186,12 @@ fn create_matrix(entry: &Path) -> Vec<Options> {
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()
}
},
Expand Down

0 comments on commit 8aa2c05

Please sign in to comment.