Open UberMouse opened 3 years ago
Does Wallaby support using alternative Jest testRunners?
At the moment Wallaby doesn't support @jest-runner/electron
(the testRunner is specifically limited to jest-runner
and jest-runner-groups
because of that).
or is this something you are willing to add support for?
It's not something that we have in our plans at the moment.
Mind sharing specific reasons behind your decision to use @jest-runner/electron
instead of the jest-runner
?
Mind sharing specific reasons behind your decision to use @jest-runner/electron instead of the jest-runner?
I need to test code that is designed to be run inside of the Electron Renderer process environment, which is what @jest-runner/electron
provides.
Issue description or question
I'm trying to get Wallaby setup to test our code designed to run in an Electron renderer process environment, so it needs to use @jest-runner/electron as the testRunner/testEnvironment.
Problem 1
Wallaby seems to only function when the testRunner is specifically jest-runner/jest-runner-groups (based on examining the
loadJest
function ofserver.js
). I worked around this by making the function that filters the configs just return true so it would load our jest config.But I'm also guessing there is a reason this only loads the jest-runner... runner and that could be the source of my problem 2
Problem 2
Now that I have Wallaby booting happily and running Jest, it doesn't actually run any tests. I'm guessing that is because of this error
Running
npx jest
works fineSo I guess my question is:
or is this something you are willing to add support for?
Let me know if you need any further details, we have a somewhat complicated environment because we use @microsoft/rush along with their Heft toolchain for building/testing which isn't really compatible with how Wallaby needs to work so I've had to write some glue code.
Wallaby diagnostics report