Chapter 1
Why TypeScript? — quiz
5 questions · ~4 min
Chapter 1 quiz
Question 1 of 5
A Cypress test reads cy.get(`[data-testid="${user.userName}"]`) but the API returns the field as `username` (lowercase n). The test silently fails to find the element on every run. Which TypeScript feature would have caught this BEFORE the test ran?