Skip to content

Commit 4113b7b

Browse files
authored
Merge pull request #23 from LeagueToolkit/add-backend-tests
feat: add comprehensive test coverage for various components and utilities
2 parents 0b8c6ad + bd23f15 commit 4113b7b

30 files changed

+3802
-264
lines changed

Cargo.lock

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
"lint:fix": "eslint . --fix",
1414
"format": "prettier --write .",
1515
"format:check": "prettier --check .",
16-
"check": "npm run typecheck && npm run lint && npm run format:check",
16+
"test": "vitest run",
17+
"test:watch": "vitest",
18+
"test:coverage": "vitest run --coverage",
19+
"check": "npm run typecheck && npm run lint && npm run format:check && npm run test",
1720
"prepare": "husky",
1821
"generate:types": "cd src-tauri && cargo test export_bindings --no-fail-fast"
1922
},
@@ -59,24 +62,30 @@
5962
"@tailwindcss/vite": "^4.0.0",
6063
"@tanstack/router-plugin": "^1.139.11",
6164
"@tauri-apps/cli": "^2.10.0",
65+
"@testing-library/jest-dom": "^6.9.1",
66+
"@testing-library/react": "^16.3.2",
67+
"@testing-library/user-event": "^14.6.1",
6268
"@types/node": "^22.0.0",
6369
"@types/react": "^19.0.0",
6470
"@types/react-dom": "^19.0.0",
6571
"@vitejs/plugin-react": "^4.3.0",
72+
"@vitest/coverage-v8": "^4.0.18",
6673
"eslint": "^9.0.0",
6774
"eslint-config-prettier": "^10.1.8",
6875
"eslint-plugin-react": "^7.37.0",
6976
"eslint-plugin-react-hooks": "^5.0.0",
7077
"eslint-plugin-simple-import-sort": "^12.1.1",
7178
"globals": "^16.0.0",
7279
"husky": "^9.0.0",
80+
"jsdom": "^28.1.0",
7381
"lint-staged": "^15.0.0",
7482
"prettier": "^3.7.2",
7583
"prettier-plugin-tailwindcss": "^0.7.2",
7684
"tailwindcss": "^4.0.0",
7785
"typescript": "^5.6.0",
7886
"typescript-eslint": "^8.0.0",
79-
"vite": "^6.0.0"
87+
"vite": "^6.0.0",
88+
"vitest": "^4.0.18"
8089
},
8190
"packageManager": "pnpm@9.14.2"
8291
}

0 commit comments

Comments
 (0)