add test coverage util

This commit is contained in:
mrjvs
2023-09-06 14:32:13 +02:00
parent afa7346601
commit ec3efbd344
3 changed files with 256 additions and 109 deletions

View File

@@ -29,8 +29,9 @@
"homepage": "https://github.com/movie-web/providers#readme",
"scripts": {
"build": "vite build",
"test": "vitest run",
"test": "vitest run --coverage",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"lint": "eslint --ext .ts,.js src/",
"lint:fix": "eslint --fix --ext .ts,.js src/",
"lint:report": "eslint --ext .ts,.js --output-file eslint_report.json --format json src/",
@@ -41,6 +42,7 @@
"@types/crypto-js": "^4.1.1",
"@typescript-eslint/eslint-plugin": "^5.60.0",
"@typescript-eslint/parser": "^5.60.0",
"@vitest/coverage-v8": "^0.34.3",
"eslint": "^8.30.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.5.0",