A curated list of browser globals that commonly cause confusion and are not recommended to use without an explicit window qualifier
Overall
score
97%
Build a user profile component and implement comprehensive snapshot testing to ensure UI consistency across changes.
Create a UserProfile component that displays user information in a formatted card layout. The component should accept user data as props and render it appropriately. Implement snapshot tests to verify the component's rendered output remains consistent.
The UserProfile component should:
name, email, role, and bioCreate comprehensive snapshot tests that verify:
@generates
/**
* Displays a user profile card with formatted information
* @param {Object} props - Component props
* @param {Object} props.user - User data object
* @param {string} props.user.name - User's full name
* @param {string} props.user.email - User's email address
* @param {string} props.user.role - User's role or title
* @param {string} [props.user.bio] - Optional user biography
* @returns {JSX.Element} Rendered user profile component
*/
function UserProfile({ user }) {
// Implementation here
}
export default UserProfile;Provides the component framework for building the UI.
Provides testing utilities for React components including snapshot testing capabilities.
Install with Tessl CLI
npx tessl i tessl/npm-confusing-browser-globalsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10