2018-11-28 20:12:47 -08:00
|
|
|
// @flow
|
2019-02-04 20:41:45 -08:00
|
|
|
|
2019-01-22 10:48:54 -08:00
|
|
|
/* eslint-disable import/no-extraneous-dependencies */
|
2018-11-28 09:07:58 -08:00
|
|
|
import electron from 'electron';
|
|
|
|
import { Application } from 'spectron';
|
|
|
|
|
2019-01-22 10:48:54 -08:00
|
|
|
export const TIMEOUT = 20000;
|
2018-11-28 09:07:58 -08:00
|
|
|
|
|
|
|
export const getApp = () => new Application({
|
|
|
|
path: electron,
|
|
|
|
args: ['.'],
|
|
|
|
startTimeout: TIMEOUT,
|
|
|
|
waitTimeout: TIMEOUT,
|
2019-01-22 10:48:54 -08:00
|
|
|
quitTimeout: TIMEOUT,
|
2019-01-23 07:37:35 -08:00
|
|
|
env: {
|
|
|
|
NODE_ENV: 'test',
|
|
|
|
},
|
2018-11-28 09:07:58 -08:00
|
|
|
});
|