You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It also works if I don't use a preset at all and hardcode "reporters": ["default"] directly to package.json but that would defeat the purpose of using a preset.
The real preset I have the issue with does of course add additional reporters but as the bug is reproducible without them they are left out.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Version
28.0.2
Steps to reproduce
A minimal repo with the bug is available at ext/jest-28-bug-reporter-default:
git clone https://github.com/ext/jest-28-bug-reporter-default.git
npm install
npm test
The repo contains a jest preset which sets
reporters: ["default"]
and in this case it references itself with"preset": "."
.Expected behavior
Running
jest
should succeed.Actual behavior
This can also be seen in the logs from Github actions from the above mentioned repo.
Additional context
As a workaround modifying
jest-preset.js
as following works but is not the way it is documented:It also works if I don't use a preset at all and hardcode
"reporters": ["default"]
directly topackage.json
but that would defeat the purpose of using a preset.The real preset I have the issue with does of course add additional reporters but as the bug is reproducible without them they are left out.
Environment
System: OS: Linux 5.10 Gentoo Linux CPU: (24) x64 AMD Ryzen 9 3900X 12-Core Processor Binaries: Node: 16.14.1 - /usr/bin/node Yarn: 1.22.10 - /usr/bin/yarn npm: 8.6.0 - /usr/bin/npm npmPackages: jest: ^28.0.2 => 28.0.2
The text was updated successfully, but these errors were encountered: