Test BookFinder.js using mocha

This commit is contained in:
mikiher 2023-11-09 19:58:51 +00:00
parent d1671f0ddc
commit e8c14dbb58
4 changed files with 1398 additions and 5669 deletions

View file

@ -16,7 +16,7 @@
"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": "jest"
"test": "mocha"
},
"bin": "prod.js",
"pkg": {
@ -29,6 +29,9 @@
"server/**/*.js"
]
},
"mocha": {
"recursive": true
},
"author": "advplyr",
"license": "GPL-3.0",
"dependencies": {
@ -45,7 +48,9 @@
"xml2js": "^0.5.0"
},
"devDependencies": {
"jest": "^29.7.0",
"nodemon": "^2.0.20"
"chai": "^4.3.10",
"mocha": "^10.2.0",
"nodemon": "^2.0.20",
"sinon": "^17.0.1"
}
}
}