diff --git a/AGENTS.md b/AGENTS.md index f44310a..498f89d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -21,14 +21,14 @@ Adopt-a-Street is a community street adoption platform with a React frontend and After implementing any feature, fix, or update, you MUST: -1. **Build and test** the changes: - ```bash - # Backend - cd backend && npm test + 1. **Build and test** the changes: + ```bash + # Backend + cd backend && bun test - # Frontend - cd frontend && npm run build - ``` + # Frontend + cd frontend && bun run build + ``` 2. **Create a git commit** with a descriptive message: ```bash @@ -68,15 +68,15 @@ This ensures: ## Commands ### Backend (from `/backend`) -- `npm test` - Run all tests -- `npx eslint .` - Run linter +- `bun test` - Run all tests +- `bunx eslint .` - Run linter - `node server.js` - Start development server ### Frontend (from `/frontend`) -- `npm test` - Run all tests in watch mode -- `npm test -- --testNamePattern="test name"` - Run single test -- `npm run build` - Production build -- `npm start` - Start development server +- `bun test` - Run all tests in watch mode +- `bun test -- --testNamePattern="test name"` - Run single test +- `bun run build` - Production build +- `bun start` - Start development server ## Code Style @@ -198,16 +198,16 @@ Comprehensive test infrastructure is in place for both backend and frontend. Backend: ```bash cd backend -npm test # Run all tests -npm run test:coverage # Run with coverage report -npm run test:watch # Run in watch mode +bun test # Run all tests +bun run test:coverage # Run with coverage report +bun run test:watch # Run in watch mode ``` Frontend: ```bash cd frontend -npm test # Run in watch mode -npm run test:coverage # Run with coverage report +bun test # Run in watch mode +bun run test:coverage # Run with coverage report ``` ### Test Coverage