Skip to content

Commit e17a716

Browse files
author
Vasyl Stokolosa
committed
Cypress configurations
1 parent 7f448d4 commit e17a716

File tree

3 files changed

+398
-15
lines changed

3 files changed

+398
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ npm-debug*
88
.idea
99

1010
app/tests/__tests__/coverage/*
11+
/cypress/
1112

1213
.DS_Store
1314

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@
1414
"author": "shystruk",
1515
"license": "MIT",
1616
"scripts": {
17+
"server": "nodemon --delay 2 index.js",
1718
"dev": "concurrently \"webpack --watch\" \"gulp\"",
1819
"prod": "gulp clean-build && grunt remove-code && webpack && gulp prod --production && grunt",
1920
"staging": "gulp clean-build && webpack && gulp prod --production && grunt",
2021
"test": "jest --coverage",
2122
"test:watch": "jest --coverage --watch",
22-
"e2e": "cypress open",
23-
"report-coverage": "cat ./app/tests/__tests__/coverage/lcov.info | codecov"
23+
"report-coverage": "cat ./app/tests/__tests__/coverage/lcov.info | codecov",
24+
"e2e": "run-p --race server cypress:run",
25+
"cypress:open": "cypress open",
26+
"cypress:run": "cypress run --spec ./app/tests/e2e/cypress/integration/create_react_redux_app_structure_spec.js"
2427
},
2528
"config": {
2629
"ghooks": {
@@ -105,6 +108,8 @@
105108
"gulp-uglify": "^3.0.0",
106109
"gulp-util": "^3.0.8",
107110
"jest": "^21.2.1",
111+
"nodemon": "^1.12.1",
112+
"npm-run-all": "^4.1.2",
108113
"react-test-renderer": "^16.0.0",
109114
"regenerator-runtime": "^0.11.0",
110115
"uglifyjs-webpack-plugin": "^0.4.6",

0 commit comments

Comments
 (0)