Skip to content
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

Feature Suggestion: Improve Debugging #14

Open
bigtimebuddy opened this issue Dec 15, 2022 · 1 comment
Open

Feature Suggestion: Improve Debugging #14

bigtimebuddy opened this issue Dec 15, 2022 · 1 comment

Comments

@bigtimebuddy
Copy link

bigtimebuddy commented Dec 15, 2022

Hello, I've been trying to transition my project away from jest-electron because of incompatibility with the latest Jest and because of old Electron version supported.

This project has worked very well except for debugging.

Using the steps getCurrentWindow().show(); simply opens a blank window. I'm not able to use debugger statements and I don't see any Jest output on the screen.

jest-electron uses an environment variable, e.g., DEBUG_MODE=1 jest which will show the electron window and allow for breakpoints, output Jest to the DOM, etc. I like the environment variable because it makes it easy to invoke and turn on or off debugging without having to change the source code of any tests.

@semireg
Copy link

semireg commented Mar 21, 2024

I agree. My workflow would really benefit from being able to debug with DevTools, console, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants