Skip to content

Commit f3272be

Browse files
committed
fix(template/jest): use es6 imports, fixes #759
1 parent 9c7f6f6 commit f3272be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* @jest-environment node
33
*/
4-
const spectron = require('spectron')
5-
const { testWithSpectron } = require('vue-cli-plugin-electron-builder')
4+
import spectron from 'spectron'
5+
import { testWithSpectron } from 'vue-cli-plugin-electron-builder'
66
jest.setTimeout(50000)
77

88
test('Window Loads Properly', async () => {

0 commit comments

Comments
 (0)