The backend is now Supabase Edge Functions (supabase/functions/). The old
FastAPI pytest suite (85 tests) was retired along with the FastAPI app - it
tested code that no longer exists. There is no automated backend test suite
yet; adding one would mean deno test specs per function (not set up here).
Manually verify a function locally with:
supabase functions serve --env-file supabase/.env
curl "http://localhost:54321/functions/v1/search-food?query=apple"cd frontend
npm testnpm run test:watchnpm run test:uinpm run test:coveragefrontend/src/
├── components/
│ └── __tests__/ # Component tests
├── services/
│ └── __tests__/ # Service tests
└── pages/
└── __tests__/ # Page tests
- Total tests: 137
- Passing: 137
- Coverage: 60.4%
- Framework: Vitest + React Testing Library
Tests run automatically via GitHub Actions on:
- Pull requests
- Pushes to main branch
See .github/workflows/ci.yml for CI configuration.
import { render, screen } from '@testing-library/react'
import { Login } from './Login'
test('renders login form', () => {
render(<Login />)
expect(screen.getByText('Sign In')).toBeInTheDocument()
})Clear cache and reinstall:
rm -rf node_modules
npm installCheck:
- Environment variables are set in GitHub Secrets
- Dependencies are correctly specified in
package.json - No system-specific paths in tests
Next: Deployment