Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Allow disabling hardware acceleration #82

Open
kayahr opened this issue Mar 31, 2021 · 0 comments · May be fixed by #84
Open

Allow disabling hardware acceleration #82

kayahr opened this issue Mar 31, 2021 · 0 comments · May be fixed by #84

Comments

@kayahr
Copy link

kayahr commented Mar 31, 2021

I have some unit tests which compares the content of a Canvas with a PNG containing the expected output. Unfortunately tests like these are not deterministic because of hardware acceleration. My workstation supports hardware acceleration but my CI system does not. So the output is slightly different and therefor tests are failing because the actual canvas doesn't match the expected output.

This can be fixed by disabling hardware acceleration but unfortunately there is no such option in jest-electron-runner yet. I guess the easiest way would be implementing an environment variable like JEST_ELECTRON_RUNNER_DISABLE_HARDWARE_ACCELERATION.

Or maybe it is a good idea to disable hardware acceleration by default and let users enable it on demand with an environment variable like JEST_ELECTRON_RUNNER_ENABLE_HARDWARE_ACCELERATION?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant