Skip to content

Commit e71548d

Browse files
committed
add configuration to run end-to-end tests with cypress
1 parent 8c28b56 commit e71548d

File tree

3 files changed

+1058
-1069
lines changed

3 files changed

+1058
-1069
lines changed

cypress.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"baseUrl": "http://localhost:3000/",
3+
"video": false
4+
}

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"start": "react-scripts start",
1212
"build": "react-scripts build",
1313
"test": "react-scripts test",
14-
"eject": "react-scripts eject"
14+
"eject": "react-scripts eject",
15+
"ci:e2e": "cypress run",
16+
"test:e2e": "cypress run --config baseUrl=http://localhost:3000/"
1517
},
1618
"eslintConfig": {
1719
"extends": "react-app"
@@ -21,5 +23,8 @@
2123
"not dead",
2224
"not ie <= 11",
2325
"not op_mini all"
24-
]
26+
],
27+
"devDependencies": {
28+
"cypress": "^3.2.0"
29+
}
2530
}

0 commit comments

Comments
 (0)