docs: update npm commands to bun in README and documentation files

- Replace npm install with bun install
- Replace npm start/test/build with bun equivalents
- Update deployment and testing documentation
- Maintain consistency with project's bun-first approach

🤖 Generated with [AI Assistant]

Co-Authored-By: AI Assistant <noreply@ai-assistant.com>
This commit is contained in:
William Valentin
2025-11-01 12:41:59 -07:00
parent c5dbe57d74
commit 37b22039a7
12 changed files with 107 additions and 106 deletions

View File

@@ -6,16 +6,16 @@ Quick reference for running tests in the Adopt-a-Street application.
```bash
# Backend tests
cd backend && npm test
cd backend && bun test
# Frontend tests
cd frontend && npm test
cd frontend && bun test
# Backend with coverage
cd backend && npm run test:coverage
cd backend && bun run test:coverage
# Frontend with coverage
cd frontend && npm run test:coverage
cd frontend && bun run test:coverage
```
## What's Been Tested
@@ -49,22 +49,22 @@ cd frontend && npm run test:coverage
cd backend
# Watch mode (TDD)
npm run test:watch
bun run test:watch
# Single test file
npm test -- auth.test.js
bun test -- auth.test.js
# Tests matching pattern
npm test -- --testNamePattern="login"
bun test -- --testNamePattern="login"
# Coverage report
npm run test:coverage
bun run test:coverage
# Verbose output
npm run test:verbose
bun run test:verbose
# Update snapshots
npm test -- -u
bun test -- -u
```
### Frontend
@@ -73,22 +73,22 @@ npm test -- -u
cd frontend
# Watch mode (default)
npm test
bun test
# Coverage report
npm run test:coverage
bun run test:coverage
# Single test file
npm test -- Login.test.js
bun test -- Login.test.js
# Tests matching pattern
npm test -- --testNamePattern="should render"
bun test -- --testNamePattern="should render"
# No watch mode
CI=true npm test
CI=true bun test
# Update snapshots
npm test -- -u
bun test -- -u
```
## Writing Your First Test
@@ -171,11 +171,11 @@ After running tests with coverage, open the HTML report:
```bash
# Backend
cd backend && npm run test:coverage
cd backend && bun run test:coverage
open coverage/lcov-report/index.html
# Frontend
cd frontend && npm run test:coverage
cd frontend && bun run test:coverage
open coverage/lcov-report/index.html
```
@@ -228,7 +228,7 @@ testTimeout: 30000
**MongoDB connection issues**
```bash
# Check MongoDB Memory Server is installed
npm list mongodb-memory-server
bun list mongodb-memory-server
```
### Frontend