Skip to content

Commit 79bf891

Browse files
committedMay 5, 2022
Replace the deprecated istanbul with nyc
1 parent 04b3cb7 commit 79bf891

File tree

4 files changed

+1358
-846
lines changed

4 files changed

+1358
-846
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ bin/amqp-rabbitmq-0.9.1.json
66
etc/
77
coverage/
88
/.idea/
9+
.nyc_output/

‎Makefile

+3-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ NODEJS_VERSIONS='10.21' '11.15' '12.18' '13.14' '14.5' '15.8'
88
MOCHA=./node_modules/.bin/mocha
99
_MOCHA=./node_modules/.bin/_mocha
1010
UGLIFY=./node_modules/.bin/uglifyjs
11-
ISTANBUL=./node_modules/.bin/istanbul
11+
NYC=./node_modules/.bin/nyc
1212

1313
.PHONY: test test-all-nodejs all clean coverage
1414

@@ -33,9 +33,8 @@ test-all-nodejs: lib/defs.js
3333
nave use $$v $(MOCHA) -u tdd -R progress test; \
3434
done
3535

36-
coverage: $(ISTANBUL) lib/defs.js
37-
$(ISTANBUL) cover $(_MOCHA) -- -u tdd -R progress test/
38-
$(ISTANBUL) report
36+
coverage: $(NYC) lib/defs.js
37+
$(NYC) --reporter=lcov --reporter=text $(_MOCHA) -u tdd -R progress test/
3938
@echo "HTML report at file://$$(pwd)/coverage/lcov-report/index.html"
4039

4140
bin/amqp-rabbitmq-0.9.1.json:

‎package-lock.json

+1,352-840
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
},
2121
"devDependencies": {
2222
"claire": "0.4.1",
23-
"istanbul": "0.1.x",
2423
"mocha": "^3.5.3",
24+
"nyc": "^15.1.0",
2525
"uglify-js": "2.8.x"
2626
},
2727
"scripts": {
@@ -35,4 +35,4 @@
3535
],
3636
"author": "Michael Bridgen <mikeb@squaremobius.net>",
3737
"license": "MIT"
38-
}
38+
}

0 commit comments

Comments
 (0)
Please sign in to comment.