Skip to content

Commit f5c19c0

Browse files
committed
docs(testingAndDebugging): link to test examples, fixes #418
1 parent 80e710d commit f5c19c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/guide/testingAndDebugging.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ vue-cli-plugin-electron-builder exports a `testWithSpectron` function. This func
3636
// This example uses Jest, but any testing framework will work as well
3737

3838
const { testWithSpectron } = require('vue-cli-plugin-electron-builder')
39+
jest.setTimeout(50000)
3940

4041
test('a window is created', async () => {
4142
const { stdout, url, stopServe, app } = await testWithSpectron()
@@ -50,6 +51,8 @@ test('a window is created', async () => {
5051
})
5152
```
5253

54+
Complete examples are available for [jest](https://github.com/nklayman/vue-cli-plugin-electron-builder/blob/master/generator/templates/tests-jest/tests/unit/electron.spec.js) and [mocha](https://github.com/nklayman/vue-cli-plugin-electron-builder/blob/master/generator/templates/tests-mocha/tests/unit/electron.spec.js). They will be automatically added with this plugin if you have jest or mocha already installed in your project.
55+
5356
`testWithSpectron` takes a config argument. That config argument has properties as defined:
5457

5558
```javascript

0 commit comments

Comments
 (0)