Jest 30 default test discovery was finding frontend/src/**/*.test.js and __tests__/ files when running from the project root. These need react-scripts (CRA's Babel config) to parse ESM imports and JSX. Added jest.roots to confine root-level Jest to backend tests only. Frontend tests run separately via react-scripts test in test-frontend.
948 B
948 B