How to use Jest with spectron to e2e testing?


#1

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 https://github.com/SimulatedGREG/electron-vue

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.