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
When I try to create wrapper functions to run git CLI, I hit many roadblocks. One of them is I can't use execa (if you search for how to use child_process in electron, you will find more trouble 😂). That's mean this project can't use Jest in normal/default configuration because it runs on node.js environment and use jsdom to simulate DOM behavior. Luckily I found something interesting:
When I try to create wrapper functions to run git CLI, I hit many roadblocks. One of them is I can't use execa (if you search for how to use
child_process
in electron, you will find more trouble 😂). That's mean this project can't use Jest in normal/default configuration because it runs on node.js environment and usejsdom
to simulate DOM behavior. Luckily I found something interesting:Don't know if it's stable enough 🤔
Another references
The text was updated successfully, but these errors were encountered: