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/vitest.config.ts | |
| 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/vitest.config.ts')
| -rw-r--r-- | apps/web/vitest.config.ts | 13 |
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, "."), + }, + }, +}) |