diff --git a/.nycrc b/.nycrc new file mode 100644 index 00000000..79d0261d --- /dev/null +++ b/.nycrc @@ -0,0 +1,29 @@ +{ + "check-coverage": true, + "per-file": true, + "lines": 63, + "statements": 40, + "functions": 15, + "branches": 50, + "include": [ + "src/**/*.ts", + "src/index.ts" + ], + "exclude": [ + "test/*" + ], + "ignore-class-method": "methodToIgnore", + "reporter": [ + "lcov", + "text", + "html" + ], + "all": true, + "extension": [ + ".ts", + ".tsx" + ], + "exclude": [ + "**/*.d.ts" + ] +} \ No newline at end of file diff --git a/package.json b/package.json index 48ea2717..f82af158 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "main": "dist/index.js", "scripts": { "compile": "rm -rf dist/ && tsc", - "test": "NODE_ENV=test nyc --reporter=text --reporter=lcov mocha -r source-map-support/register -r ts-node/register --recursive test/**/*.spec.ts --exit", - "coveralls": "cat ./coverage/lcov.info | coveralls -v" + "test": "nyc mocha -r source-map-support/register -r ts-node/register --recursive test/**/*.spec.ts", + "coveralls": "cat coverage/lcov.info | coveralls -v" }, "keywords": [], "author": "Carmine DiMascio ",