Skip to content

Commit

Permalink
fix(config): fixture path join on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
DonIsaac committed Jan 30, 2024
1 parent 34df9ee commit 98b057d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/oxc_linter/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ mod test {

#[test]
fn test_js_config() {
let fixture_path = env::current_dir().unwrap().join("fixtures/eslint_config.js");
// double join to use correct separator on windows
let fixture_path = env::current_dir().unwrap().join("fixtures").join("eslint_config.js");
let config = ESLintConfig::new(&fixture_path).unwrap();
assert!(!config.rules.is_empty());
assert!(config.rules.iter().any(|rule| rule.rule_name == "no-console"));
Expand Down

0 comments on commit 98b057d

Please sign in to comment.