-
-
Notifications
You must be signed in to change notification settings - Fork 130
/
Copy pathcypress.config.js
42 lines (35 loc) · 934 Bytes
/
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
41
42
// override: false means that we won't override env vars from the command line
require('dotenv').config({override: false})
let env = process.env
module.exports = {
chromeWebSecurity: false,
env: {
...env,
COMMAND_PREFIX: "docker compose exec -T php",
coverage: false,
},
nodeVersion: "system",
viewportWidth: 1600,
retries: {
// Configure retry attempts for `cypress run`
runMode: 2,
// Configure retry attempts for `cypress open`
openMode: 0,
},
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require("./cypress/plugins/index.js")(on, config);
},
baseUrl: "http://localhost:9080",
experimentalStudio: true,
},
component: {
setupNodeEvents(on, config) {},
devServer: {
framework: "react",
bundler: "webpack",
},
},
};