Skip to content

Commit 5c9daf0

Browse files
fix(docs): add manual setup documentation to Electron docs
1 parent 11ca2d1 commit 5c9daf0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

website/docs/desktop-testing/Electron.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,27 @@ An installation wizard will guide you through the process. Ensure you select _"D
3333

3434
The configuration wizard will install all required packages and create a `wdio.conf.js` or `wdio.conf.ts` with the necessary configuration to test your application. If you agree to autogenerate some test files you can run your first test via `npm run wdio`.
3535

36+
## Manual Setup
37+
38+
If you are already using WebdriverIO in your project you can skip the installation wizard and just add the following dependencies:
39+
40+
```sh
41+
npm install --save-dev wdio-electron-service
42+
```
43+
44+
Then you can use the following configuration:
45+
46+
```ts
47+
// wdio.conf.ts
48+
export const config: WebdriverIO.Config = {
49+
// ...
50+
services: [['electron', {
51+
appEntryPoint: './path/to/bundled/electron/main.bundle.js',
52+
appArgs: [/** ... */],
53+
}]]
54+
}
55+
```
56+
3657
That's it 🎉
58+
59+
Learn more about how [to configure the Electron Service](/desktop-testing/electron/configuration), [how to mock Electron APIs](/desktop-testing/electron/mocking) and [how to access Electron APIs](/desktop-testing/electron/apis).

0 commit comments

Comments
 (0)