diff --git a/crates/oxc_linter/src/rules/jest/prefer_strict_equal.rs b/crates/oxc_linter/src/rules/jest/prefer_strict_equal.rs index db69e1a9e..1f0bc8db2 100644 --- a/crates/oxc_linter/src/rules/jest/prefer_strict_equal.rs +++ b/crates/oxc_linter/src/rules/jest/prefer_strict_equal.rs @@ -76,7 +76,7 @@ impl PreferStrictEqual { .replace(matcher_name.to_string().as_str(), "toStrictEqual") .as_bytes(), ); - Fix::new(formatter.into_code(), matcher.span) + Fix::new(formatter.into_source_text(), matcher.span) }); } }