diff --git a/.gitignore b/.gitignore index 8fe8ddd..1e26855 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ lib node_modules npm-debug.log +.nyc_output \ No newline at end of file diff --git a/.npmignore b/.npmignore index 1a99b2b..58ccaa6 100644 --- a/.npmignore +++ b/.npmignore @@ -1,3 +1,4 @@ src test .travis.yml +.nyc_output diff --git a/package.json b/package.json index 8799d58..e41d103 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "", "main": "lib/index.js", "scripts": { - "test": "npm run build && npm run mocha", - "mocha": "mocha --compilers js:babel-core/register test/src/**", + "test": "npm run build && npm run unit", + "unit": "nyc --require babel-core/register mocha test/src/**", "build": "babel src --out-dir lib", "prepublish": "in-publish && npm run test || not-in-publish" }, @@ -26,6 +26,7 @@ "eslint-plugin-react": "~4.2.3", "expect.js": "~0.3.1", "mocha": "~2.4.5", + "nyc": "~6.4.2", "proxyquire": "~1.7.4", "sinon": "~1.17.3" },