diff --git a/README.md b/README.md index 1eb8cc528..55e79b2b1 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,9 @@ npm run db:reset ``` ## 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 yarn run test # -or- diff --git a/package.json b/package.json index 4f4d457c5..ee388d0e6 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "dev": "nodemon --exec babel-node src/index.js", "dev:debug": "nodemon --exec babel-node --inspect=0.0.0.0:9229 src/index.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:cmd:jest": "jest", "test:coverage": "nyc report --reporter=text-lcov > coverage.lcov",