Add frontend tests to pre-commit and Makefile. (#1549)

Signed-off-by: ifuryst <ifuryst@gmail.com>
This commit is contained in:
Leo
2024-05-04 04:15:22 +08:00
committed by GitHub
parent bccb8297b8
commit 6013faeec5
4 changed files with 11 additions and 3 deletions

View File

@@ -160,6 +160,13 @@ lint:
@$(MAKE) -s lint-frontend
@$(MAKE) -s lint-backend
test-frontend:
@echo "$(YELLOW)Running tests for frontend...$(RESET)"
@cd frontend && npm run test
test:
@$(MAKE) -s test-frontend
build-frontend:
@echo "$(YELLOW)Building frontend...$(RESET)"
@cd frontend && npm run build