import { render, screen } from '@testing-library/react';
import { UserCard } from './UserCard';
describe('UserCard', () => {
it('renders name and role', () => {
render(<UserCard name="Alex" role="Volunteer" />);
expect(screen.getByText('Alex')).toBeInTheDocument();
expect(screen.getByText('Volunteer')).toBeInTheDocument();
});
});ProCharity Platform
I worked with a modular frontend architecture in a team: fixing UI bugs, maintaining tests and taking part in refactoring so the platform stayed stable as features grew.
- React
- TypeScript
- SCSS
- Storybook
- Jest
- Fixed layout and automated test failures.
- Took part in restructuring and refactoring the codebase.
PASS