summaryrefslogtreecommitdiff
path: root/apps/web/package.json
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-10 00:14:49 -0800
committerFuwn <[email protected]>2026-02-10 00:14:49 -0800
commit3bf0a85f912d39595f0f9d329ee316e1af79dd86 (patch)
tree34d8dce12a12d14a61774e47f2eaeed21bc7289e /apps/web/package.json
parentfix: reduce lint warnings from 34 to 0 (diff)
downloadasa.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.json6
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"
}
}