Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Use correct extensions for fixture tests #6539

Merged
merged 14 commits into from Nov 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion crates/swc_css_lints/tests/lints.rs
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_css_parser/tests/fixture.rs
Expand Up @@ -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();
}

Expand Down