Ocelot-Social/package.json
Robert Schäfer 9663b23553 Add convenience package.json script for cypress
This
* removes unnecessary backend server on :4001 (there is already one
running at :4000)
* allows to run `yarn run cypress:setup` independent of backend servers
2019-04-03 17:03:46 +02:00

29 lines
956 B
JSON

{
"name": "nitro-cypress",
"version": "1.0.0",
"description": "Fullstack tests with cypress for Human Connection",
"author": "Human Connection gGmbh",
"license": "MIT",
"cypress-cucumber-preprocessor": {
"nonGlobalStepDefinitions": true
},
"scripts": {
"cypress:backend:server": "cd backend && yarn run test:before:server",
"cypress:backend:seeder": "cd backend && yarn run test:before:seeder",
"cypress:webapp": "cd webapp && cross-env GRAPHQL_URI=http://localhost:4123 yarn run dev",
"cypress:setup": "run-p cypress:backend:* cypress:webapp",
"cypress:run": "cypress run --browser chrome",
"cypress:open": "cypress open --browser chrome"
},
"devDependencies": {
"cross-env": "^5.2.0",
"cypress": "^3.2.0",
"cypress-cucumber-preprocessor": "^1.11.0",
"dotenv": "^7.0.0",
"faker": "^4.1.0",
"graphql-request": "^1.8.2",
"neo4j-driver": "^1.7.3",
"npm-run-all": "^4.1.5"
}
}