zepio/__tests__/setup/utils.js

19 lines
362 B
JavaScript
Raw Normal View History

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