Add unit tests (#11) (#14)

## Summary
- Add Jest/RTL unit tests for data models, Card, Footer, CustomTextField/PasswordField, CustomToastMessage, ConversationCard, AuthContext, and SignIn
- Remove the broken CRA `App.test.tsx` placeholder that expected "learn react"
- Add `npm run test:ci` for non-interactive CI runs

Closes #11

## Test plan
- [ ] `cd llm-fe && npm install`
- [ ] `npm run test:ci` — expect 9 suites / 32 tests passing

Reviewed-on: #14
This commit was merged in pull request #14.
This commit is contained in:
2026-07-14 18:03:24 -07:00
parent 40db2495f2
commit c0d83359cc
11 changed files with 560 additions and 9 deletions
+1
View File
@@ -41,6 +41,7 @@
"start": "NODE_ENV=development react-scripts start",
"build": "NODE_ENV=production react-scripts build",
"test": "NODE_ENV=development react-scripts test",
"test:ci": "CI=true NODE_ENV=development react-scripts test --watchAll=false --coverage=false",
"eject": "react-scripts eject"
},
"eslintConfig": {