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

Support custom Jest configuration in js-builder-jest

    Details

    • Similar Issues:
    • Epic Link:
    • Sprint:
      Blue Ocean 1.2-beta2, Blue Ocean 1.2-beta3

      Description

      Thorsten Scherler requested the ability to override the config that js-builder-jest uses to support more use cases. This should be a relatively small effort.

      Scope

      • Read project's package.json and check for "jest" config element that is used by the "jest" command line utility but ignored by default in "gulp-jest"
      • The default config from js-builder-jest should still be respected but the "jest" properties from package.json should be merged in and override anything in the default config.
      • Need to consider if there any pitfalls doing this across the different test modes ("test", "test:fast", "test:debug"). These profiles may need to selectively trump incoming properties (ensuring that "test:fast" never runs with coverage enabled, etc). Since each profile uses just a handful of properties, it shouldn't be a problem.

        Attachments

          Issue Links

            Activity

            Hide
            cliffmeyers Cliff Meyers added a comment -

            James Dumay I don't think this will take more than a few hours. Do you mind if I tackle this on Mon?

            Show
            cliffmeyers Cliff Meyers added a comment - James Dumay I don't think this will take more than a few hours. Do you mind if I tackle this on Mon?
            Hide
            jamesdumay James Dumay added a comment -

            Sure thing.

            Show
            jamesdumay James Dumay added a comment - Sure thing.
            Hide
            jamesdumay James Dumay added a comment -

            Cliff Meyers don't forget to assign these to yourself

            Show
            jamesdumay James Dumay added a comment - Cliff Meyers don't forget to assign these to yourself
            Hide
            cliffmeyers Cliff Meyers added a comment -

            I think the work here is basically done, just waiting for some additional feedback from Thorsten Scherler after fixing one bug he found today.

            Show
            cliffmeyers Cliff Meyers added a comment - I think the work here is basically done, just waiting for some additional feedback from Thorsten Scherler after fixing one bug he found today.

              People

              • Assignee:
                cliffmeyers Cliff Meyers
                Reporter:
                cliffmeyers Cliff Meyers
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: