-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcodecept.js
55 lines (53 loc) · 1.02 KB
/
codecept.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
49
50
51
52
53
54
55
const config = require('./config/test')
const browserUrl = config.asset.url
module.exports.config = {
tests: './*/e2e/*.e2e.js',
timeout: 10000,
output: './e2e/output',
helpers: {
Nightmare: {
gotoTimeout: 120000,
disableScreenshots: 'true',
browser: 'chrome',
url: browserUrl,
show: true
},
worker: Object.assign(
{
require: './e2e/helpers/worker'
},
config.worker
),
mailer: Object.assign(
{
require: './e2e/helpers/mailer'
},
config.mailer
),
// api must close after worker
// (mw) why?
api: Object.assign(
{
require: './e2e/helpers/api'
},
config.api
),
asset: Object.assign(
{
require: './e2e/helpers/asset'
},
config.asset
)
},
bootstrap: () => {
process.on('unhandledRejection', (reason, p) => {
console.error(reason)
process.exit(1)
})
},
include: {
I: './e2e/steps.js'
},
mocha: {},
name: 'butthub-provider'
}