This commit is contained in:
portree_kid
2019-11-05 22:43:18 +01:00
commit b81348bdb8
45 changed files with 20499 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import electron from 'electron'
import { Application } from 'spectron'
export default {
afterEach () {
this.timeout(10000)
if (this.app && this.app.isRunning()) {
return this.app.stop()
}
},
beforeEach () {
this.timeout(10000)
this.app = new Application({
path: electron,
args: ['dist/electron/main.js'],
startTimeout: 10000,
waitTimeout: 10000
})
return this.app.start()
}
}