Skip to content

Commit b70101c

Browse files
authored
test: migrate to tap (#9)
1 parent c1d2e8c commit b70101c

3 files changed

Lines changed: 200 additions & 184 deletions

File tree

.taprc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
check-coverage: false

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
"description": "Automatically install pre-commit hooks for your npm modules.",
55
"main": "index.js",
66
"scripts": {
7-
"coverage": "istanbul cover ./node_modules/.bin/_mocha -- test.js",
87
"example-fail": "echo \"This is the example hook, I exit with 1\" && exit 1",
98
"example-pass": "echo \"This is the example hook, I exit with 0\" && exit 0",
109
"install": "node install.js",
11-
"test": "mocha test.js",
12-
"test-travis": "istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js",
10+
"unit": "tap test.js",
11+
"test": "npm run unit",
1312
"uninstall": "node uninstall.js"
1413
},
1514
"repository": {
@@ -35,9 +34,7 @@
3534
"which": "^2.0.2"
3635
},
3736
"devDependencies": {
38-
"assume": "^2.3.0",
39-
"istanbul": "0.4.x",
40-
"mocha": "^8.4.0",
41-
"pre-commit": "git://github.com/observing/pre-commit.git"
37+
"pre-commit": "git://github.com/observing/pre-commit.git",
38+
"tap": "^15.0.9"
4239
}
4340
}

0 commit comments

Comments
 (0)