diff options
| author | Fuwn <[email protected]> | 2026-02-10 00:14:49 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-10 00:14:49 -0800 |
| commit | 3bf0a85f912d39595f0f9d329ee316e1af79dd86 (patch) | |
| tree | 34d8dce12a12d14a61774e47f2eaeed21bc7289e /apps/web/package.json | |
| parent | fix: reduce lint warnings from 34 to 0 (diff) | |
| download | asa.news-3bf0a85f912d39595f0f9d329ee316e1af79dd86.tar.xz asa.news-3bf0a85f912d39595f0f9d329ee316e1af79dd86.zip | |
feat: add vitest tests and GitHub Actions CI
24 tests covering webhook URL validation (SSRF), API key generation/
hashing, and HTML sanitization. CI workflow runs lint, typecheck
(build), and test on push/PR to main.
Diffstat (limited to 'apps/web/package.json')
| -rw-r--r-- | apps/web/package.json | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/web/package.json b/apps/web/package.json index b548ff3..0b5aa4c 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -6,7 +6,8 @@ "dev": "next dev", "build": "next build --webpack", "start": "next start", - "lint": "eslint" + "lint": "eslint", + "test": "vitest run" }, "dependencies": { "@asa-news/shared": "workspace:*", @@ -45,6 +46,7 @@ "eslint": "^9", "eslint-config-next": "16.1.6", "tailwindcss": "^4", - "typescript": "^5" + "typescript": "^5", + "vitest": "^4.0.18" } } |