test: Use correct extensions for fixture tests (#6539)

This commit is contained in:
Donny/강동윤 2022-11-29 18:47:56 +09:00 committed by GitHub
parent 1393a7ce28
commit 7ee86d1d25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1864 changed files with 280 additions and 392 deletions

View File

@ -52,7 +52,7 @@ fn pass(input: PathBuf) {
#[testing::fixture("tests/rules/fail/**/input.css")]
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 lint_config =
serde_json::from_str::<LintConfig>(&fs::read_to_string(config_path).unwrap()).unwrap();

View File

@ -547,7 +547,7 @@ fn stylesheet_span_visualizer(input: PathBuf, config: Option<ParserConfig>) {
.unwrap_err();
output
.compare_to_file(&dir.join("span.rust-debug"))
.compare_to_file(&dir.join("span.swc-stderr"))
.unwrap();
}

Some files were not shown because too many files have changed in this diff Show More