-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webstorm Jest Runner Broken #8118
Comments
Yeah, it turned into an actual class. Can you report this on youtrack? Even if we revert the change, we'll want it back in the future |
This has already been fixed on IntelliJs side, but is not included in the latest EAP yet. There is a workaround. Have a look in the IntelliJ ticket: |
Problem is it's a breaking change in a minor release |
It's not a public API - they are overriding internals. I don't think it should be expected for Jest to not be able to change its internals. Their reporter should be a Jest reporter, not a refurbished Jasmine reporter. Jasmine will stop being the default runner in the next major of Jest, and will be removed at some point in the future. I'm not sure if Jest's current reporter API provide the hooks needed for IntelliJ to do its thing. Happy to work with them to make it happen, if needed. I wanna revamp our reporters anyways, so this is a good time to look into IDE integrations (#4471 & #7900) /cc @segrey |
The issue in IntelliJ tracker: https://youtrack.jetbrains.com/issue/WEB-37680. @SimenB Yeah, IntelliJ can use both reporters: a Jest reporter and a Jasmine reporter. Jasmine reporter is preferred as it allows to fetch expected and actual values for failed assertions (useful for snapshot testing), see #5034. Another benefit is ability to receive events about started/finished tests during a single test file run (#4471): it allows to debug a test and see it and its output in the test tree. It'd be great to extend Jest reporter API and switch to it in next IntelliJ versions. Looking forward to it :) |
Awesome, thanks for those links @segrey! We're all meeting up in London next week, I'll be sure to come out with a plan for reporters after that. I added them to the Jest 25 milestone for now so I don't forget. Just to be sure I understood correctly - the reason you prefer the jasmine reporter is that it provides information not available in the jest reporter? Concretely missing:
Anything else? And beyond parity with the Jasmine reporter, could we add something more you think would be useful? |
@SimenB Great! Regarding benefits of using Jasmine reporter, I don't have a complete list unfortunately.
|
The same issue is there with intellij as well |
Just had the same issue with older version but updating to the latest version of IntelliJ and WebStorm the issue was fixed. This ticket seems to be good to be close. |
Great, thanks! |
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. |
💥 Regression Report
Webstorm has it's own jasmine reporter, it seems like due to the typescript rewrite classes got stricter and now it no longer runs as it did
Last working version
Worked up to version:
24.1.0
Stopped working in version:
24.3.0
To Reproduce
Steps to reproduce the behavior:
Try to run a jest test suite in webstorm
Expected behavior
It runs the test suite fine like before
Link to repl or repo (highly encouraged)
Sadly somewhat hard to make a repl, I can't even revert back to the previous version because of all the semver ranges
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: