web: move to vitest

This commit is contained in:
2026-08-04 03:02:09 +02:00
parent eabcd47bfd
commit 6370373f0d
6 changed files with 1228 additions and 17 deletions
+2 -1
View File
@@ -24,11 +24,12 @@ npm install
npm run dev # http://localhost:3000
npm run codegen # regenerate GraphQL types (needs the backend running)
npm run build
npm test # vitest (npm run test:watch for watch mode)
```
## Pre-commit hooks
[prek](https://github.com/j178/prek) runs ruff lint + format on `dnscms/**/*.py` plus a few sanity hooks. Hooks are configured in [prek.toml](prek.toml).
[prek](https://github.com/j178/prek) runs ruff lint + format on `dnscms/**/*.py`, vitest on `web/` changes, plus a few sanity hooks. Hooks are configured in [prek.toml](prek.toml).
```bash
prek install # registers the git hook