Skip to content

Commit 67c55a0

Browse files
committed
docs(testingAndDebugging): update example
1 parent 9f431e0 commit 67c55a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/guide/testingAndDebugging.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ vue-cli-plugin-electron-builder exports a `testWithSpectron` function. This func
3434

3535
```javascript
3636
// This example uses Jest, but any testing framework will work as well
37-
37+
// Jest tests MUST run in the node environment, add this to the top of each electron test:
38+
/**
39+
* @jest-environment node
40+
*/
3841
const spectron = require('spectron')
3942
const { testWithSpectron } = require('vue-cli-plugin-electron-builder')
4043
jest.setTimeout(50000)

0 commit comments

Comments
 (0)