feat: add tests for import polling, login page, money utilities, and query keys
- Implemented tests for import polling functionality, ensuring correct behavior for active and terminal import statuses. - Created tests for the login page, validating user interactions and error handling. - Added unit tests for money utility functions, covering parsing, formatting, and summation of monetary values. - Developed tests for query keys, ensuring proper scoping and invalidation roots. chore: setup testing environment and configuration - Added setup file for testing with Vitest and Testing Library. - Configured TypeScript and Vite for the frontend project. - Created Docker and Nginx configurations for local development and production environments. - Established a PostgreSQL initialization script for setting up application roles. docs: add README and environment configuration for infra - Included README for the infra directory, detailing local development setup and service descriptions. - Created an example environment configuration file for local development with placeholders for sensitive information.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
.PHONY: dev down migrate backend-check frontend-check check
|
||||
|
||||
dev:
|
||||
docker compose --env-file infra/.env -f infra/docker-compose.yml up --build
|
||||
|
||||
down:
|
||||
docker compose --env-file infra/.env -f infra/docker-compose.yml down
|
||||
|
||||
migrate:
|
||||
docker compose --env-file infra/.env -f infra/docker-compose.yml run --rm migrate
|
||||
|
||||
backend-check:
|
||||
uv run --project backend ruff check backend
|
||||
uv run --project backend mypy --config-file backend/pyproject.toml backend/app
|
||||
uv run --project backend pytest backend
|
||||
|
||||
frontend-check:
|
||||
npx --yes pnpm@9.15.9 --dir frontend lint
|
||||
npx --yes pnpm@9.15.9 --dir frontend typecheck
|
||||
npx --yes pnpm@9.15.9 --dir frontend test
|
||||
npx --yes pnpm@9.15.9 --dir frontend build
|
||||
|
||||
check: backend-check frontend-check
|
||||
Reference in New Issue
Block a user