Update README with a warning and fix package.json

This commit is contained in:
Robert Schäfer 2019-01-02 15:59:32 +01:00
parent 7634234afd
commit 0185f743e8
2 changed files with 4 additions and 1 deletions

View File

@ -131,6 +131,9 @@ npm run db:reset
``` ```
## Run Tests ## Run Tests
**Beware**: We have no multiple database setup at the moment. We clean the database after each test, running the tests will wipe out all your data!
```bash ```bash
yarn run test yarn run test
# -or- # -or-

View File

@ -12,7 +12,7 @@
"dev": "nodemon --exec babel-node src/index.js", "dev": "nodemon --exec babel-node src/index.js",
"dev:debug": "nodemon --exec babel-node --inspect=0.0.0.0:9229 src/index.js", "dev:debug": "nodemon --exec babel-node --inspect=0.0.0.0:9229 src/index.js",
"lint": "eslint src --config .eslintrc.js", "lint": "eslint src --config .eslintrc.js",
"test": "nyc --reporter=text-lcov test:jest", "test": "nyc --reporter=text-lcov yarn run test:jest",
"test:jest": "$npm_package_config_no_auth run-p --race start test:cmd:jest", "test:jest": "$npm_package_config_no_auth run-p --race start test:cmd:jest",
"test:cmd:jest": "jest", "test:cmd:jest": "jest",
"test:coverage": "nyc report --reporter=text-lcov > coverage.lcov", "test:coverage": "nyc report --reporter=text-lcov > coverage.lcov",