mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
test: Use correct extensions for fixture tests (#6539)
This commit is contained in:
parent
1393a7ce28
commit
7ee86d1d25
@ -52,7 +52,7 @@ fn pass(input: PathBuf) {
|
|||||||
|
|
||||||
#[testing::fixture("tests/rules/fail/**/input.css")]
|
#[testing::fixture("tests/rules/fail/**/input.css")]
|
||||||
fn fail(input: PathBuf) {
|
fn fail(input: PathBuf) {
|
||||||
let stderr_path = input.parent().unwrap().join("output.stderr");
|
let stderr_path = input.parent().unwrap().join("output.swc-stderr");
|
||||||
let config_path = input.parent().unwrap().join("config.json");
|
let config_path = input.parent().unwrap().join("config.json");
|
||||||
let lint_config =
|
let lint_config =
|
||||||
serde_json::from_str::<LintConfig>(&fs::read_to_string(config_path).unwrap()).unwrap();
|
serde_json::from_str::<LintConfig>(&fs::read_to_string(config_path).unwrap()).unwrap();
|
||||||
|
@ -547,7 +547,7 @@ fn stylesheet_span_visualizer(input: PathBuf, config: Option<ParserConfig>) {
|
|||||||
.unwrap_err();
|
.unwrap_err();
|
||||||
|
|
||||||
output
|
output
|
||||||
.compare_to_file(&dir.join("span.rust-debug"))
|
.compare_to_file(&dir.join("span.swc-stderr"))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user