feature/mongodb-to-couchdb-migration #1
@@ -24,10 +24,10 @@ After implementing any feature, fix, or update, you MUST:
|
|||||||
1. **Build and test** the changes:
|
1. **Build and test** the changes:
|
||||||
```bash
|
```bash
|
||||||
# Backend
|
# Backend
|
||||||
cd backend && npm test
|
cd backend && bun test
|
||||||
|
|
||||||
# Frontend
|
# Frontend
|
||||||
cd frontend && npm run build
|
cd frontend && bun run build
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **Create a git commit** with a descriptive message:
|
2. **Create a git commit** with a descriptive message:
|
||||||
@@ -68,15 +68,15 @@ This ensures:
|
|||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
### Backend (from `/backend`)
|
### Backend (from `/backend`)
|
||||||
- `npm test` - Run all tests
|
- `bun test` - Run all tests
|
||||||
- `npx eslint .` - Run linter
|
- `bunx eslint .` - Run linter
|
||||||
- `node server.js` - Start development server
|
- `node server.js` - Start development server
|
||||||
|
|
||||||
### Frontend (from `/frontend`)
|
### Frontend (from `/frontend`)
|
||||||
- `npm test` - Run all tests in watch mode
|
- `bun test` - Run all tests in watch mode
|
||||||
- `npm test -- --testNamePattern="test name"` - Run single test
|
- `bun test -- --testNamePattern="test name"` - Run single test
|
||||||
- `npm run build` - Production build
|
- `bun run build` - Production build
|
||||||
- `npm start` - Start development server
|
- `bun start` - Start development server
|
||||||
|
|
||||||
## Code Style
|
## Code Style
|
||||||
|
|
||||||
@@ -198,16 +198,16 @@ Comprehensive test infrastructure is in place for both backend and frontend.
|
|||||||
Backend:
|
Backend:
|
||||||
```bash
|
```bash
|
||||||
cd backend
|
cd backend
|
||||||
npm test # Run all tests
|
bun test # Run all tests
|
||||||
npm run test:coverage # Run with coverage report
|
bun run test:coverage # Run with coverage report
|
||||||
npm run test:watch # Run in watch mode
|
bun run test:watch # Run in watch mode
|
||||||
```
|
```
|
||||||
|
|
||||||
Frontend:
|
Frontend:
|
||||||
```bash
|
```bash
|
||||||
cd frontend
|
cd frontend
|
||||||
npm test # Run in watch mode
|
bun test # Run in watch mode
|
||||||
npm run test:coverage # Run with coverage report
|
bun run test:coverage # Run with coverage report
|
||||||
```
|
```
|
||||||
|
|
||||||
### Test Coverage
|
### Test Coverage
|
||||||
|
|||||||
Reference in New Issue
Block a user