diff --git a/jquery/jquery-tests.ts b/jquery/jquery-tests.ts index 2fd4ff9cb5..fa91dc6b63 100644 --- a/jquery/jquery-tests.ts +++ b/jquery/jquery-tests.ts @@ -1124,7 +1124,9 @@ function test_error() { $(this).hide(); }) .attr("src", "missing.png"); - jQuery.error = console.error; + jQuery.error = (message?: string) => { + console.error(message); return this; + } } function test_eventParams() {