deerflow2/frontend/src
yangzheli 4efc8d404f
feat(frontend): set up Vitest frontend testing infrastructure with CI workflow (#2147)
* feat: set up Vitest frontend testing infrastructure with CI workflow

Migrate existing 4 frontend test files from Node.js native test runner
(node:test + node:assert/strict) to Vitest, reorganize test directory
structure under tests/unit/ mirroring src/ layout, and add a dedicated
CI workflow for frontend unit tests.

- Add vitest as devDependency, remove tsx
- Create vitest.config.ts with @/ path alias
- Migrate tests to Vitest API (test/expect/vi)
- Rename .mjs test files to .ts
- Move tests from src/ to tests/unit/ (mirrors src/ layout)
- Add frontend/Makefile `test` target
- Add .github/workflows/frontend-unit-tests.yml (parallel to backend)
- Update CONTRIBUTING.md, README.md, AGENTS.md, CLAUDE.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* style: fix the lint error

* style: fix the lint error

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-04-12 18:00:43 +08:00
..
app feat(blog): implement blog structure with post listing, tagging, and layout enhancements (#1962) 2026-04-10 20:24:52 +08:00
components feat(blog): implement blog structure with post listing, tagging, and layout enhancements (#1962) 2026-04-10 20:24:52 +08:00
content feat(blog): implement blog structure with post listing, tagging, and layout enhancements (#1962) 2026-04-10 20:24:52 +08:00
core feat(frontend): set up Vitest frontend testing infrastructure with CI workflow (#2147) 2026-04-12 18:00:43 +08:00
hooks ci: enforce code formatting checks for backend and frontend (#1536) 2026-03-29 15:34:38 +08:00
lib fix(frontend): prevent submit during IME composition (#1562) 2026-03-29 22:36:38 +08:00
server/better-auth style: format 2026-01-17 00:13:24 +08:00
styles fix(frontend): UI polish - fix CSS typo, dark mode border, and hardcoded colors (#1942) 2026-04-08 09:07:39 +08:00
typings feat: add 'about' page 2026-02-06 15:18:37 +08:00
env.js feat: implement the first section of landing page 2026-01-23 00:15:21 +08:00
mdx-components.ts Add documents site (#1767) 2026-04-03 07:25:40 +08:00