Skip to content

Commit

Permalink
Add --window-config-file JSON file option
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Dec 4, 2020
1 parent f809f0a commit 1b2c857
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ electron-mocha
Mocha testing in [Electron](https://electronjs.org). This project has
two main value propositions:

1. You can now easily test any JavaScript app in a real browser (Chromium)
without hassling with PhantomJS or Webdriver.
1. You can now easily test any JavaScript app in a real browser environment.
2. You can now easily test your Electron apps!


Expand Down Expand Up @@ -45,7 +44,9 @@ with these additional options:
--window-config-file Supply custom electron window options [string]
-W, --warnings Print renderer warnings to console [boolean]

`window-config-file` must be a javascript file that exports an options object. Check out [electron docs](https://www.electronjs.org/docs/api/browser-window#new-browserwindowoptions) for the list of available options.
The `window-config-file` must be a JSON file or a JavaScript module that exports the
options object. For more information, check out the
[Electron docs](https://www.electronjs.org/docs/api/browser-window#new-browserwindowoptions).

For the full list of available options, see `electron-mocha --help`.

Expand Down

0 comments on commit 1b2c857

Please sign in to comment.