-
Task
-
Resolution: Won't Do
-
Minor
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)
[JENKINS-68975] Update Jest from 26.x to 28.x
Description |
Original:
To update Jest from 26.x to 28.x (or to a newer, maintained, versions), a couple of tests need minor adjustments in order to work with the changes in Jest.
The tests and issues in question are: {noformat} 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) {noformat} and {noformat} 07:54:12 [INFO] ● pluginSetupWizard.js › running extension callbacks › yields a jenkins object with the initHandlebars method 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) {noformat} Other notable changes, such as dependency updates, are already addressed. |
New:
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: {noformat} 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) {noformat} |
Resolution | New: Won't Do [ 10001 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
Assignee | New: Basil Crow [ basil ] |