Add Istanbul coverage (nyc)

This commit is contained in:
mikiher 2023-11-10 10:02:02 +00:00
parent ea05e1f559
commit ecba67da6d
3 changed files with 2714 additions and 13 deletions

2
.gitignore vendored
View File

@ -11,6 +11,8 @@
/client/dist/
/dist/
/deploy/
/coverage/
/.nyc_output/
sw.*
.DS_STORE

2721
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,7 +16,8 @@
"docker-arm64-local": "docker buildx build --platform linux/arm64 --load . -t advplyr/audiobookshelf-arm64-local",
"docker-armv7-local": "docker buildx build --platform linux/arm/v7 --load . -t advplyr/audiobookshelf-armv7-local",
"deploy-linux": "node deploy/linux",
"test": "mocha"
"test": "mocha",
"coverage": "nyc mocha"
},
"bin": "prod.js",
"pkg": {
@ -51,6 +52,7 @@
"chai": "^4.3.10",
"mocha": "^10.2.0",
"nodemon": "^2.0.20",
"nyc": "^15.1.0",
"sinon": "^17.0.1"
}
}