From e759ddced2604f0325e48e9c1554e15c97c9a6c4 Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Sun, 11 Jan 2026 19:23:51 -0800 Subject: [PATCH] Clarify monkey patching deprecation warning --- lib/jasmine-core/jasmine.js | 2 +- src/core/deprecateMonkeyPatching.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index dd7a348e..53aa0b5f 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -3870,7 +3870,7 @@ getJasmineRequireObj().deprecateMonkeyPatching = function(j$) { }, set(newValue) { j$.getEnv().deprecated( - 'Monkey patching detected. This is not supported and will break in a future jasmine-core release.' + 'Monkey patching detected. Code that overwrites parts of Jasmine, except globala and other properties that are documented as writeable, is not supported and will break in a future release.' ); value = newValue; } diff --git a/src/core/deprecateMonkeyPatching.js b/src/core/deprecateMonkeyPatching.js index ca73e764..0635775b 100644 --- a/src/core/deprecateMonkeyPatching.js +++ b/src/core/deprecateMonkeyPatching.js @@ -11,7 +11,7 @@ getJasmineRequireObj().deprecateMonkeyPatching = function(j$) { }, set(newValue) { j$.getEnv().deprecated( - 'Monkey patching detected. This is not supported and will break in a future jasmine-core release.' + 'Monkey patching detected. Code that overwrites parts of Jasmine, except globala and other properties that are documented as writeable, is not supported and will break in a future release.' ); value = newValue; }