Closed Neumann-Nils closed 1 year ago
Can you provide a sample repo to test this out I'm not able to reproduce this (I used this repo)
@sh33dafi Thanks for your response. Unluckily, I am unable to reproduce the error anymore. From my side, feel free to close this issue.
Feel free to create a new issue if you can reproduce it
Locked due to an inactive of 90 days
Describe the bug When running tests with Jest v27, a new runner called
jest-circuit
(see https://jestjs.io/blog/2021/05/25/jest-27#flipping-defaults) is used. When using thejest-sonar
reporter, the execution fails (see error ouput below).After some investigation, we found out that switching the runner back to
jest-jasmine2
, the error goes away and the reporter runs smoothly. However, asjest-runner
is the new default, we want to change it in the future.Unluckily, we cannot provide any further insights yet nor any input on fixing the error. If you need more information, let us know!
To Reproduce Steps to reproduce the behavior:
jest-sonar
as a reporter (e.g.jest --ci --reporters=jest-sonar
)Expected behavior When running
jest-sonar
with Jest v27 and the new defaultjest-circuit
runner, the behavior should not change and the reporter should run succesfully.Desktop (please complete the following information):
Additional context With Jest v26 (and
jasmine
as the default runner), the reporter works just fine locally and in Jenkins.