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

Upgrade to jest 23+

    XMLWordPrintable

Details

    • Evergreen - Milestone 1

    Description

      We have a few flakes in our tests, and there are many awesome improvements in Jest 23.

      For instance, after having tracked a weird expect(something).toBeTruthy() random test error, after I upgraded locally to jest 23 the error immediately got clearer and started to show me the exact line that was failing.

      The new --detectOpenHandles option seems also like a great things to help us improve and deflake our tests, by allowing us to track and fix the async calls we left out running in our tests and are likely the cause of some of our random failures.

      NOT upgrading right now to not risk breaking things before Jenkins World demos. Trying this locally upgrades also a bunch of other things like babel to 7+. So better do this > next Wednesday .

      Attachments

        Issue Links

          Activity

            batmat Baptiste Mathus created issue -
            batmat Baptiste Mathus made changes -
            Field Original Value New Value
            Assignee R. Tyler Croy [ rtyler ] Baptiste Mathus [ batmat ]
            batmat Baptiste Mathus made changes -
            Description We have a few flakes in our tests, and there are many awesome improvements in Jest 23.

            For instance, after having tracked a weird {{expect(something).toBeTruthy()}} random test error, after I upgraded locally to jest 23 the error immediately got clearer and started to show me the exact line that was failing.

            *NOT* upgrading right now to not risk breaking things before Jenkins World demos. Trying this locally upgrades also a bunch of other things like babel to 7+. So better do this > next Wednesday :-).
            We have a few flakes in our tests, and there are many awesome improvements in Jest 23.

            For instance, after having tracked a weird {{expect(something).toBeTruthy()}} random test error, after I upgraded locally to jest 23 the error immediately got clearer and started to show me the exact line that was failing.

            The new {{--detectOpenHandles}} option seems also like a great things to help us improve and deflake our tests, by allowing us to track and fix the async calls we left out running in our tests and are likely the cause of some of our random failures.

            *NOT* upgrading right now to not risk breaking things before Jenkins World demos. Trying this locally upgrades also a bunch of other things like babel to 7+. So better do this > next Wednesday :-).
            batmat Baptiste Mathus made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            batmat Baptiste Mathus made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            batmat Baptiste Mathus made changes -
            Remote Link This issue links to "evergreen PR (Web Link)" [ 21830 ]
            batmat Baptiste Mathus made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]

            People

              batmat Baptiste Mathus
              batmat Baptiste Mathus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: