How to use Jest with spectron to e2e testing?


I’m trying to do e2e tests with Jest in Electron, I installed Spectron but when i want to run my test i get:

TypeError: Cannot read property ‘client’ of undefined

I’m using a vue-electron template

Originally you can choose to prepare the template with spectron, mocha and chai but I want use spectron with jest.

Please help me with this.