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

Support custom Jest configuration in js-builder-jest

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • blueocean-plugin
    • None
    • Blue Ocean 1.2-beta2, Blue Ocean 1.2-beta3

      tscherler 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.

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

              Created:
              Updated:
              Resolved: