Skip to content

Commit 0216efa

Browse files
committed
rename test scripts, make travis run without tests for now
1 parent ca1be3d commit 0216efa

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ node_js:
55

66
install:
77
- npm install
8+
9+
script:
10+
- npm test

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
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)",

0 commit comments

Comments
 (0)