-
Notifications
You must be signed in to change notification settings - Fork 7
/
cypress.config.ts
42 lines (41 loc) · 981 Bytes
/
cypress.config.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
import { defineConfig } from 'cypress'
import { seedDb } from './cypress/plugins/index'
export default defineConfig({
env: {
HOST: 'http://localhost:3000',
mailHogUrl: 'http://localhost:8025',
},
requestTimeout: 30000,
numTestsKeptInMemory: 0,
experimentalMemoryManagement: true,
responseTimeout: 50000,
pageLoadTimeout: 100000,
watchForFileChanges: false,
chromeWebSecurity: false,
video: false,
screenshotOnRunFailure: true,
screenshotsFolder: 'cypress/screenshots',
viewportWidth: 1520,
viewportHeight: 1090,
reporter: 'mochawesome',
reporterOptions: {
reportDir: 'cypress/reports',
reportFilename: 'index.html',
reportPageTitle: 'Corteza e2e tests',
overwrite: false,
html: false,
json: true,
},
e2e: {
testIsolation: true,
setupNodeEvents(on, config) {
on('task', {
seedDb,
log (message) {
console.log(message)
return null
}
})
},
},
})