facebook-atom / jest-electron-runner

custom test runner for Jest that allows tests to be run in Electron environment
MIT License
189 stars 33 forks source link

Electron fails to find app with Yarn v2 & pnp #55

Open seniorquico opened 4 years ago

seniorquico commented 4 years ago

I'll try to see if I can publish a repo with a simple reproduction... but as the title says, I get failures when the runner launches Electron that indicate the app could not be found inside a project using Yarn v2 (pnp).

I unplugged the runner and modified the child process spawn from process.execPath to yarn with the first argument being node (so... yarn node ...). That got further, and Electron started. However, it then failed trying to import from the @jest-runner/rpc package.

It would be great if this runner could support Yarn v2.