Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-68975

Update Jest from 26.x to 28.x

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Minor Minor
    • 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)
      

            basil Basil Crow
            notmyfault Alexander Brandes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: