summaryrefslogtreecommitdiff
path: root/apps/web/vitest.config.ts
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/vitest.config.ts
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/vitest.config.ts')
-rw-r--r--apps/web/vitest.config.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/web/vitest.config.ts b/apps/web/vitest.config.ts
new file mode 100644
index 0000000..c0446b5
--- /dev/null
+++ b/apps/web/vitest.config.ts
@@ -0,0 +1,13 @@
+import { defineConfig } from "vitest/config"
+import { resolve } from "path"
+
+export default defineConfig({
+ test: {
+ include: ["lib/**/*.test.ts"],
+ },
+ resolve: {
+ alias: {
+ "@": resolve(__dirname, "."),
+ },
+ },
+})