Skip to content

Commit

Permalink
chore: npm test run tests via docker
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jun 27, 2019
1 parent d4415eb commit f472c05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
depends_on:
- redis
network_mode: "host"
command: ["/wait-for-it.sh", "0.0.0.0:7007", "--", "npm", "test"]
command: ["/wait-for-it.sh", "0.0.0.0:7007", "--", "node", "japaFile.js"]
redis:
image: grokzen/redis-cluster
environment:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"scripts": {
"mrm": "mrm --preset=@adonisjs/mrm-preset",
"pretest": "npm run lint",
"test": "node japaFile.js",
"test": "docker-compose build && docker-compose run --rm tests",
"lint": "tslint --project tsconfig.json",
"clean": "del build",
"compile": "npm run lint && npm run clean && tsc",
Expand Down

0 comments on commit f472c05

Please sign in to comment.