UI Engineer Interview Questions & Answers
40 questions for UI Engineer interviews — 1 easy, 34 medium, 5 hard.
About the UI Engineer role
A UI engineer focuses on building high-quality, reusable interface components and design systems. They work closely with designers to translate tokens and patterns into accessible, well-documented components, often in Storybook, and ensure visual consistency across products. Strong CSS architecture, TypeScript and testing skills are central to this mid-level role.
How does type narrowing work in TypeScript?
Show answer
Which tsconfig options are important for a strict codebase?
Show answer
Create a type where all fields are optional except id.
Show answer
What is the guiding principle of Testing Library and why query by role?
Show answer
What are declaration files (.d.ts) and when do you write them?
Show answer
Configure cache headers for hashed assets and HTML in Nginx.
Show answer
Why are many teams moving from Jest to Vitest?
Show answer
Search results sometimes show data for an older query. What is happening?
Show answer
Management requires 100 percent code coverage, but bugs still appear. How do you respond?
Show answer
Create a typed fetch helper with generics.
Show answer
Add automated accessibility checks to Playwright tests.
Show answer
When should you mock in frontend tests, and what is Mock Service Worker?
Show answer
An accordion animation stutters on low-end Android phones. What is wrong?
Show answer
How do you handle unclear requirements from a product manager?
Show answer
You are asked to build a design system used by several products. How do you approach it?
Show answer
What are CSS logical properties?
Show answer
Should you use enums or string literal unions?
Show answer
What makes frontend tests flaky?
Show answer
Write a Playwright end-to-end test for a login flow.
Show answer
Define brand design tokens in Tailwind CSS v4.
Show answer
Make an embedded video keep a 16:9 ratio at any width.
Show answer
Model API request state with a discriminated union.
Show answer
Test a DOM form with Testing Library and user-event.
Show answer
Tailwind classes built dynamically like 'bg-' + colour work locally but are missing in production. Why?
Show answer
How do you test code that depends on the current date or timers?
Show answer
What does the :has() selector allow you to do?
Show answer
You must change a complex legacy module that has no tests. How do you proceed safely?
Show answer
Your team uses 'as any' everywhere to silence errors. How do you improve this?
Show answer
Mock fetch in a Vitest test to check error handling.
Show answer
Write a type-safe getProperty function using generics and keyof.
Show answer
Tell me about a time you pushed back on releasing code without tests.
Show answer
What is visual regression testing?
Show answer
What are the pros and cons of snapshot testing?
Show answer
Write a DeepReadonly type using mapped and conditional types.
Show answer
How do you balance technical debt against delivering new features?
Show answer
What is the difference between :is() and :where()?
Show answer
Tell me about a time you received critical feedback in a code review.
Show answer
A third-party library you need has no TypeScript types. What do you do?
Show answer
Set up ESLint with the flat config for a TypeScript project.
Show answer
Frequently asked questions
What does a UI Engineer do?
A UI engineer focuses on building high-quality, reusable interface components and design systems. They work closely with designers to translate tokens and patterns into accessible, well-documented components, often in Storybook, and ensure visual consistency across products. Strong CSS architecture, TypeScript and testing skills are central to this mid-level role.
Which skills are tested in a UI Engineer interview?
Expect questions on Design systems, Component APIs, CSS architecture, Storybook, Visual testing. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a UI Engineer interview?
Revise CSS Architecture and Accessibility, TypeScript, Frontend Testing first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.