Skip to content

Commit a06011f

Browse files
committed
[pkg] Replace istanbul with nyc
1 parent 4f55513 commit a06011f

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
node_modules
2-
coverage
3-
npm-debug.log
1+
node_modules/
2+
.nyc_output/
3+
coverage/

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ node_js:
55
- "6"
66
- "8"
77
- "9"
8-
script:
9-
- "npm run test-travis"
10-
after_script:
11-
- "npm install coveralls@2 && cat coverage/lcov.info | coveralls"
8+
after_success:
9+
- nyc report --reporter=text-lcov | coveralls
1210
matrix:
1311
fast_finish: true
1412
notifications:

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
"description": "Querystringify - Small, simple but powerful query string parser.",
55
"main": "index.js",
66
"scripts": {
7-
"test": "mocha test.js",
8-
"watch": "mocha --watch test.js",
9-
"coverage": "istanbul cover _mocha -- test.js",
10-
"test-travis": "istanbul cover _mocha --report lcovonly -- test.js"
7+
"test": "nyc --reporter=html --reporter=text mocha test.js",
8+
"watch": "mocha --watch test.js"
119
},
1210
"repository": {
1311
"type": "git",
@@ -32,8 +30,9 @@
3230
"homepage": "https://github.com/unshiftio/querystringify",
3331
"devDependencies": {
3432
"assume": "^2.1.0",
35-
"istanbul": "^0.4.5",
33+
"coveralls": "^3.1.0",
3634
"mocha": "^6.1.4",
35+
"nyc": "^15.1.0",
3736
"pre-commit": "^1.2.2"
3837
}
3938
}

0 commit comments

Comments
 (0)