-
Type:
Task
-
Resolution: Won't Do
-
Priority:
Minor
-
Component/s: core
To update Jest from 26.x to 28.x (or to a newer, maintained, versions), a test case needs minor adjustments in order to work with the changes in Jest.
The test and error in question are:
07:54:12 [INFO] ● pluginSetupWizard.js › restart required
07:54:12 [INFO]
07:54:12 [INFO] TypeError: Cannot set properties of undefined (setting 'off')
07:54:12 [INFO]
07:54:12 [INFO] 14 | // eslint-disable-next-line no-undef
07:54:12 [INFO] 15 | var $ = require('jquery');
07:54:12 [INFO] > 16 | $.fx.off = true;
07:54:12 [INFO] | ^
07:54:12 [INFO] 17 | return $;
07:54:12 [INFO] 18 | };
07:54:12 [INFO] 19 |
07:54:12 [INFO]
07:54:12 [INFO] at getJQuery (src/test/js/pluginSetupWizard.spec.js:16:5)
07:54:12 [INFO] at Object.getJQuery (src/test/js/pluginSetupWizard.spec.js:229:13)