This adds a stub useRealTimers function to the Electron environment provided to Jest. Since fake timers aren't supported, there's nothing that has to happen here. By adding this stub, errors like https://github.com/testing-library/dom-testing-library/issues/905 can be avoided.
This adds a stub
useRealTimers
function to the Electron environment provided to Jest. Since fake timers aren't supported, there's nothing that has to happen here. By adding this stub, errors like https://github.com/testing-library/dom-testing-library/issues/905 can be avoided.