From f472c05fc7d2ff1ed36cbc69241902278f6efb7a Mon Sep 17 00:00:00 2001 From: Harminder virk Date: Thu, 27 Jun 2019 14:13:35 +0530 Subject: [PATCH] chore: npm test run tests via docker --- docker-compose.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index cf875cc..f4cd333 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: diff --git a/package.json b/package.json index 948b626..2b8c313 100644 --- a/package.json +++ b/package.json @@ -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",