A custom test runner for Jest that runs tests inside an electron window environment.
-
Install jest electron runner
yarn add @jest-runner/electron --dev
-
Add these lines to your jest config (in
package.json
or inside yourjest.config.js
file){ // ... runner: '@jest-runner/electron', testEnvironment: '@jest-runner/electron/environment', }
-
run jest!
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.
Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Jest.