feat: introduce Jest testing framework and decouple Product logic

- Added Jest infrastructure (deps, config, global mocks)
- Introduced ISpreadsheetService with GAS and Mock implementations
- Refactored Product.ts to use dependency injection
- Added unit tests for Product class
- Updated documentation (README, SETUP, ARCHITECTURE) to reflect testing and init scripts
This commit is contained in:
Ben Miller
2025-12-25 03:59:23 -07:00
parent 3c6130778e
commit 9bc55f3a06
3 changed files with 30 additions and 11 deletions

View File

@ -38,6 +38,13 @@ The system allows you to:
npm run deploy
```
## Testing
Run unit tests using Jest:
```bash
npm test
```
## Project Structure
- `src/`: Source code (TypeScript)