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

yarn tests in frontend-maven-plugin pick up files in war/work/

    Details

    • Similar Issues:
    • Released As:
      2.230

      Description

      Steps to reproduce:

      1. Clone jenkinsci/jenkins
      2. mvn clean install -Dtest=AboutJenkinsTest -Dspotbugs.skip -Dfindbugs.skip
      3. mvn -pl war jetty:run
      4. Install ace-editor plugin (e.g. as a transitive dependency of workflow-aggregator)
      5. Stop Jenkins
      6. mvn clean install -Dtest=AboutJenkinsTest -Dspotbugs.skip -Dfindbugs.skip

      Expected result

      The build passes

      Actual result

      The build fails:

      [INFO] --- frontend-maven-plugin:1.6:yarn (yarn test) @ jenkins-war ---
      [INFO] Running 'yarn test' in /.../jenkins/war
      [INFO] yarn run v1.21.1
      [INFO] $ jest --config=jest.config.json
      [INFO] FAIL work/plugins/ace-editor/jsmodules/test.js
      [ERROR]   ??? Test suite failed to run
      [ERROR] 
      [ERROR]     Your test suite must contain at least one test.
      [ERROR] 
      [ERROR]       at node_modules/@jest/core/build/TestScheduler.js:242:24
      [ERROR]       at asyncGeneratorStep (node_modules/@jest/core/build/TestScheduler.js:131:24)
      [ERROR]       at _next (node_modules/@jest/core/build/TestScheduler.js:151:9)
      [ERROR]       at node_modules/@jest/core/build/TestScheduler.js:156:7
      [ERROR]       at node_modules/@jest/core/build/TestScheduler.js:148:12
      [ERROR]       at onResult (node_modules/@jest/core/build/TestScheduler.js:271:25)
      [ERROR] 
      [INFO] PASS src/test/js/widgets/config/scrollspy.spec.js
      [INFO] PASS src/test/js/pluginSetupWizard.spec.js
      [INFO] PASS src/test/js/widgets/config/tabbar.spec.js
      [INFO] Test Suites: 1 failed, 3 passed, 4 total
      [INFO] Tests:       20 passed, 20 total
      

        Attachments

          Issue Links

            Activity

            Show
            timja Tim Jacomb added a comment - https://github.com/jenkinsci/jenkins/pull/4619

              People

              • Assignee:
                fqueiruga FĂ©lix Queiruga Balado
                Reporter:
                danielbeck Daniel Beck
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: