-
Notifications
You must be signed in to change notification settings - Fork 50
/
cypress.config.js
40 lines (35 loc) · 1.02 KB
/
cypress.config.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
const { defineConfig } = require('cypress')
const cypressSplit = require('cypress-split')
const dotenv = require('dotenv')
dotenv.config()
module.exports = defineConfig({
e2e: {
setupNodeEvents (on, config) {
require('cypress-terminal-report/src/installLogsPrinter')(on)
cypressSplit(on, config)
config.env = {
...process.env,
...config.env
}
// IMPORTANT: return the config object
return config
},
baseUrl: 'http://localhost:8088',
specPattern: 'cypress/e2e/specs/*.spec.(js|ts)',
supportFile: 'cypress/e2e/support/index.ts',
experimentalRunAllSpecs: true
},
viewportHeight: 1080,
viewportWidth: 1920,
chromeWebSecurity: false,
defaultCommandTimeout: 15000,
fixturesFolder: 'cypress/e2e/fixtures',
includeShadowDom: true,
reporter: 'spec',
screenshotsFolder: 'cypress/e2e/screenshots',
scrollBehavior: 'center',
trashAssetsBeforeRuns: false,
videoCompression: false,
videosFolder: 'cypress/e2e/videos',
watchForFileChanges: true
})