-
Notifications
You must be signed in to change notification settings - Fork 1
/
testem.js
48 lines (44 loc) · 918 Bytes
/
testem.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* eslint-env node */
/**
* By default, your tests will run in Chrome.
*
* To run your tests in headless (FASTER) mode (launch_in_ci):
* `ember t`
*
* To run your tests with the browser test-page summary (launch_in_dev):
* `ember t -s`
*
*/
const isHeadless = !process.argv.includes('-s');
let options = {
framework: 'qunit',
test_page: 'tests/index.html?hidepassed&nocontainer¬ifications',
disable_watching: true,
/**
* `ember t` run ci-mode
*/
launch_in_ci: [
'Chrome'
],
/**
* Seems `launch_in_dev` seems to fire when you run `ember t -s`
*/
launch_in_dev: [
'Chrome'
]
};
if (isHeadless) {
options.browser_args = {
Chrome: [
'--headless',
'--window-size=1440,900',
'--disable-gpu',
'--remote-debugging-port=9222'
],
Firefox: [
'-headless',
'--window-size=1440,900'
]
};
}
module.exports = options;