chore: add frontend unit tests to lint-frontend make target

Added 'node --test tests/*.test.ts' to the lint-frontend target to ensure
frontend unit tests are run as part of the CI/quality checks workflow.

This ensures:
- Math formula normalization tests run before build
- Tests are validated alongside linting and type checking
- All 19 frontend tests pass before deployment

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
Willem Jiang
2025-10-15 08:34:01 +08:00
committed by Willem Jiang
parent 779de40f10
commit 9b127c55f2

View File

@@ -16,10 +16,11 @@ format: ## Format code using ruff
lint: ## Lint and fix code using ruff
uv run ruff check --fix --select I --config pyproject.toml .
lint-frontend: ## Lint frontend code and check build
lint-frontend: ## Lint frontend code, run tests, and check build
cd web && pnpm install --frozen-lockfile
cd web && pnpm lint
cd web && pnpm typecheck
cd web && node --test tests/*.test.ts
cd web && pnpm build
serve: ## Start development server with reload