Skip to content

Commit dbe80bd

Browse files
committed
Replacing the deprecated istanbul project with nyc for test coverage.
1 parent 685b177 commit dbe80bd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
/.nyc_output
12
/coverage
23
/node_modules

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "Serverless email forwarding using AWS Lambda and SES",
55
"main": "index.js",
66
"scripts": {
7-
"check-coverage": "istanbul check-coverage --statements 100",
7+
"check-coverage": "nyc --statements 100 npm run test",
88
"lint": "eslint *.js example/*.js test/*.js",
9-
"test": "istanbul cover _mocha -- --check-leaks --timeout 3000"
9+
"test": "mocha -- --check-leaks --timeout 3000"
1010
},
1111
"dependencies": {
1212
"aws-sdk": "~2.631.0"
@@ -15,8 +15,8 @@
1515
"coveralls": "^3.0.7",
1616
"eslint": "^3.15.0",
1717
"eslint-config-google": "~0.6.0",
18-
"istanbul": "^0.4.5",
19-
"mocha": "^6.2.2"
18+
"mocha": "^6.2.2",
19+
"nyc": "^15.1.0"
2020
},
2121
"engines": {
2222
"node": ">=8.0"

0 commit comments

Comments
 (0)