diff --git a/.nycrc.json b/.nycrc.json index 5d391e24..9ed0d7ea 100644 --- a/.nycrc.json +++ b/.nycrc.json @@ -2,5 +2,6 @@ "extends": "@istanbuljs/nyc-config-typescript", "all": false, "include": ["src/**"], - "exclude": ["src/test/**"] + "exclude": ["src/test/**"], + "check-coverage": true } diff --git a/package.json b/package.json index 7d534995..165cd0a3 100644 --- a/package.json +++ b/package.json @@ -27,8 +27,7 @@ "homepage": "https://github.com/davidyaha/graphql-redis-subscriptions", "scripts": { "compile": "tsc", - "test": "npm run testonly -- && npm run integration --", - "posttest": "npm run lint", + "test": "npm run coverage && npm run lint", "lint": "eslint src --ext ts", "watch": "tsc -w", "testonly": "mocha --reporter spec src/test/tests.ts",