Skip to content

Commit ecabdc8

Browse files
committed
Merge pull request #10 from nkbt/coverage
Add test coverage report, fixes #9
2 parents 5dae975 + 204b1a4 commit ecabdc8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@
1818
"eslint-config-airbnb-lite": "^1.0.3",
1919
"eslint-watch": "^1.2.4",
2020
"in-publish": "^2.0.0",
21+
"isparta": "^3.0.3",
2122
"mocha": "^2.2.5",
2223
"precommit-hook": "^3.0.0"
2324
},
2425
"scripts": {
2526
"start": "esw -w .",
2627
"lint": "eslint .",
2728
"pretest": "npm run -s lint",
28-
"test": "npm run -s build && mocha --compilers js:babel/register",
29+
"test": "mocha --compilers js:babel/register",
30+
"test:cov": "`npm bin`/babel-node `npm bin`/isparta cover --report text --report html `npm bin`/_mocha",
2931
"build": "babel src --out-dir dist",
3032
"prepublish": "in-publish && npm run -s build || in-install"
3133
},

test/test-hook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from 'fs';
22
import path from 'path';
33
import { equal } from 'assert';
44

5-
import hook from '../';
5+
import hook from '../src';
66

77
const pipelines = {
88
'test-cases': undefined,

0 commit comments

Comments
 (0)