diff --git a/crates/oxc_linter/src/rules/jest/no_deprecated_functions.rs b/crates/oxc_linter/src/rules/jest/no_deprecated_functions.rs index 63ab9f18cf596..7730c5362bec1 100644 --- a/crates/oxc_linter/src/rules/jest/no_deprecated_functions.rs +++ b/crates/oxc_linter/src/rules/jest/no_deprecated_functions.rs @@ -13,11 +13,17 @@ fn deprecated_function(deprecated: &str, new: &str, span: Span) -> OxcDiagnostic .with_label(span) } -#[derive(Debug, Default, Clone)] +#[derive(Debug, Clone)] pub struct JestConfig { version: String, } +impl Default for JestConfig { + fn default() -> Self { + Self { version: "29".to_string() } + } +} + #[derive(Debug, Default, Clone)] pub struct NoDeprecatedFunctions(Box); diff --git a/crates/oxc_linter/tests/rule_configuration_test.rs b/crates/oxc_linter/tests/rule_configuration_test.rs index f1ead49e0b375..3824b63b01cc6 100644 --- a/crates/oxc_linter/tests/rule_configuration_test.rs +++ b/crates/oxc_linter/tests/rule_configuration_test.rs @@ -25,7 +25,6 @@ fn test_rule_default_matches_from_configuration_null() { // 1. The Default implementation returns the same values as from_configuration(null), or // 2. The from_configuration method is updated to return Default::default() when given null let exceptions = [ - "jest/no-deprecated-functions", "jest/no-large-snapshots", "jest/prefer-lowercase-title", "react/jsx-filename-extension",