Upgrade testing libraries

This commit is contained in:
Dolan Miu
2023-06-15 21:15:39 +01:00
parent 6b4a78ed41
commit a9fa31ebac
4 changed files with 738 additions and 657 deletions

View File

@ -32,7 +32,7 @@ jobs:
- name: Install Dependencies
run: npm ci --force
- name: Test
run: npm run test.coverage
run: npm run test.ci
- name: Codecov
uses: codecov/codecov-action@v3
with:

1381
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -22,8 +22,8 @@
],
"scripts": {
"build": "tsc && vite build",
"test": "vitest",
"test.coverage": "vitest run --coverage",
"test": "vitest --ui --coverage",
"test.ci": "vitest run --coverage",
"prepublishOnly": "npm run build --omit=dev",
"lint": "eslint --ext .ts src",
"predemo": "npm run build",
@ -71,13 +71,15 @@
},
"homepage": "https://docx.js.org",
"devDependencies": {
"@esbuild/win32-x64": "^0.18.3",
"@types/inquirer": "^9.0.3",
"@types/prompt": "^1.1.1",
"@types/unzipper": "^0.10.4",
"@types/xml": "^1.0.8",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"@vitest/coverage-c8": "^0.32.0",
"@vitest/coverage-v8": "^0.32.0",
"@vitest/ui": "^0.32.0",
"cspell": "^6.2.2",
"docsify-cli": "^4.3.0",
"eslint": "^8.23.0",
@ -93,8 +95,6 @@
"jsdom": "^22.1.0",
"pre-commit": "^1.2.2",
"prettier": "^2.3.1",
"process": "^0.11.10",
"prompt": "^1.0.0",
"ts-node": "^10.2.1",
"tsconfig-paths": "^4.0.0",
"typedoc": "^0.24.8",

View File

@ -37,7 +37,7 @@ export default defineConfig({
test: {
environment: "jsdom",
coverage: {
provider: "c8",
provider: "v8",
reporter: ["text", "json", "html"],
statements: 99.93,
branches: 98.85,