File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 55
66install :
77 - npm install
8+
9+ script :
10+ - npm test
Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ The `SECRET` is just a random string for your authentication. Keep all these inf
5454
5555#### Testing
5656
57- * adjust ` test-server ` npm script with ` TEST_DATABASE ` environment variable in package.json to match your testing database name
57+ * adjust ` test:run -server ` npm script with ` TEST_DATABASE ` environment variable in package.json to match your testing database name
5858 * to match it from package.json: ` createdb mytestdatabase ` with psql
59- * one terminal: npm run test-server
60- * second terminal: npm run test
59+ * one terminal: npm run test: run -server
60+ * second terminal: test : execute- test
6161
6262## Want to learn more about React + GraphQL + Apollo?
6363
Original file line number Diff line number Diff line change 88 },
99 "scripts" : {
1010 "start" : " nodemon --exec babel-node src/index.js" ,
11- "test-server" : " TEST_DATABASE=mytestdatabase npm start" ,
12- "test" : " mocha --require @babel/register 'src/**/*.spec.js'"
11+ "test:run-server" : " TEST_DATABASE=mytestdatabase npm start" ,
12+ "test:execute-test" : " mocha --require @babel/register 'src/**/*.spec.js'" ,
13+ "test" : " echo \" No test specified\" && exit 0"
1314 },
1415 "keywords" : [],
1516 "author" : " Robin Wieruch <hello@rwieruch.com> (https://www.robinwieruch.de)" ,
You can’t perform that action at this time.
0 commit comments