From 9b127c55f256ce318971a5183650eaa1968104a7 Mon Sep 17 00:00:00 2001 From: Willem Jiang Date: Wed, 15 Oct 2025 08:34:01 +0800 Subject: [PATCH] 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> --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1e35ceb..e949664 100644 --- a/Makefile +++ b/Makefile @@ -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