Closed MareikeTaeubner closed 1 year ago
Looks like you mixed up the setup. Either you are testing in the main process with the node
environment, then you have to use @kayahr/jest-electron-runner/main
as runner. Or you are testing in the renderer process with the @kayahr/jest-electron-runner
test runner, then you have to use the @kayahr/jest-electron-runner/environment
test environment. See the examples in the README.
ok, it is monday and the problem was sitting in the chair before the pc. ^^"
I completely overlooked the /main
part. Thank you very much for helping me out.
It works fine now. Thank you again.
You are welcome :relaxed:
Maybe I'm just using the runner wrong, but when I try to run the tests, jest crashes with this error:
Installed libraries:
This is my jest.config.js
Is there a way on my side to fix this?