Skip to content

Commit 104458b

Browse files
committed
fix(generator/mocha): non webpack require spectron
1 parent fd2fb93 commit 104458b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

generator/templates/tests-mocha/tests/unit/electron.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import spectron from 'spectron'
1+
// eslint-disable-next-line no-undef
2+
const spectron = __non_webpack_require__('spectron')
23
import testWithSpectron from 'vue-cli-plugin-electron-builder/lib/testWithSpectron'
34
import chai from 'chai'
45
import chaiAsPromised from 'chai-as-promised'

0 commit comments

Comments
 (0)