CypressError: `cy.task('coverageReport')` failed with the following error:
> Cannot read property 'loc' of undefined
https://on.cypress.io/api/task
Because this error occurred during a `after all` hook we are skipping all of the remaining tests.
Although you have test retries enabled, we do not retry tests when `before all` or `after all` hooks fail
at http://localhost:5004/__cypress/runner/cypress_runner.js:167099:78
at tryCatcher (http://localhost:5004/__cypress/runner/cypress_runner.js:13022:23)
at Promise._settlePromiseFromHandler (http://localhost:5004/__cypress/runner/cypress_runner.js:10957:31)
at Promise._settlePromise (http://localhost:5004/__cypress/runner/cypress_runner.js:11014:18)
at Promise._settlePromise0 (http://localhost:5004/__cypress/runner/cypress_runner.js:11059:10)
at Promise._settlePromises (http://localhost:5004/__cypress/runner/cypress_runner.js:11135:18)
at _drainQueueStep (http://localhost:5004/__cypress/runner/cypress_runner.js:7729:12)
at _drainQueue (http://localhost:5004/__cypress/runner/cypress_runner.js:7722:9)
at Async.../../node_modules/bluebird/js/release/async.js.Async._drainQueues (http://localhost:5004/__cypress/runner/cypress_runner.js:7738:5)
at Async.drainQueues (http://localhost:5004/__cypress/runner/cypress_runner.js:7608:14)
From Your Spec Code:
at Context.eval (http://localhost:5004/__cypress/tests?p=cypress/integration/persistent-identifiers.spec.js:242:16)
From Node.js Internals:
TypeError: Cannot read property 'loc' of undefined
at /var/lib/jenkins/workspace/DWAPPS/tests-on-diff/node_modules/istanbul-reports/lib/lcovonly/index.js:53:35
at Array.forEach (<anonymous>)
at LcovOnlyReport.onDetail (/var/lib/jenkins/workspace/DWAPPS/tests-on-diff/node_modules/istanbul-reports/lib/lcovonly/index.js:51:34)
at LcovReport.<computed> [as onDetail] (/var/lib/jenkins/workspace/DWAPPS/tests-on-diff/node_modules/istanbul-reports/lib/lcov/index.js:25:23)
at Visitor.value (/var/lib/jenkins/workspace/DWAPPS/tests-on-diff/node_modules/istanbul-lib-report/lib/tree.js:38:38)
at ReportNode.visit (/var/lib/jenkins/workspace/DWAPPS/tests-on-diff/node_modules/istanbul-lib-report/lib/tree.js:88:21)
at /var/lib/jenkins/workspace/DWAPPS/tests-on-diff/node_modules/istanbul-lib-report/lib/tree.js:92:19
at Array.forEach (<anonymous>)
at ReportNode.visit (/var/lib/jenkins/workspace/DWAPPS/tests-on-diff/node_modules/istanbul-lib-report/lib/tree.js:91:28)
at /var/lib/jenkins/workspace/DWAPPS/tests-on-diff/node_modules/istanbul-lib-report/lib/tree.js:92:19
at Array.forEach (<anonymous>)
at ReportNode.visit (/var/lib/jenkins/workspace/DWAPPS/tests-on-diff/node_modules/istanbul-lib-report/lib/tree.js:91:28)
at ReportTree.visit (/var/lib/jenkins/workspace/DWAPPS/tests-on-diff/node_modules/istanbul-lib-report/lib/tree.js:127:24)
at LcovReport.execute (/var/lib/jenkins/workspace/DWAPPS/tests-on-diff/node_modules/istanbul-lib-report/lib/report-base.js:12:44)
at /var/lib/jenkins/workspace/DWAPPS/tests-on-diff/node_modules/nyc/index.js:467:10
at Array.forEach (<anonymous>)
at NYC.report (/var/lib/jenkins/workspace/DWAPPS/tests-on-diff/node_modules/nyc/index.js:461:19)
TEST RESULT
TEST RESULT
- Run At
- May 14 2022, 3:26 PM