How to run headless tests on MacOS?

There is Electron application and Maven test scenario I’m running on MacOS Catalina (orchestrated by Jenkins).
The test scenario runs well only if my desktop user is logged in. From https://electronjs.org/docs/tutorial/testing-on-headless-ci I understand that a headless driver should be used. But, as far as I see, xvfb isn’t available for MacOS Catalina. What is the simplest alternative?

Thanks,
Vitaly