-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathcodecept.conf.ts
42 lines (42 loc) · 935 Bytes
/
codecept.conf.ts
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
export const config: CodeceptJS.MainConfig = {
tests: './*/*_test.ts',
output: './output',
emptyOutputFolder: true,
helpers: {
REST: {
endpoint: 'https://reqres.in',
timeout: 30_000
},
AllureReport: {
require: './helpers/allure-report.helper.ts'
},
JSONResponse: {},
ExpectHelper: {
require: 'codeceptjs-expect'
},
ApiDataFactory: {
endpoint: "https://reqres.in",
cleanup: false,
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
},
factories: {
user: {
factory: "./factories/user",
create: (data) => ({ method: 'POST', url: '/api/users', data })
},
}
}
},
include: {
I: './stepObjects/custom.steps.ts'
},
name: 'codeceptjs-rest-demo',
plugins: {
allure: {
enabled: true,
require: '@codeceptjs/allure-legacy',
}
}
}