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 5
5
6
6
install :
7
7
- 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
54
54
55
55
#### Testing
56
56
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
58
58
* 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
61
61
62
62
## Want to learn more about React + GraphQL + Apollo?
63
63
Original file line number Diff line number Diff line change 8
8
},
9
9
"scripts" : {
10
10
"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"
13
14
},
14
15
"keywords" : [],
15
16
"author" : " Robin Wieruch <hello@rwieruch.com> (https://www.robinwieruch.de)" ,
You can’t perform that action at this time.
0 commit comments