test(infra): Fix compilation errors from TS3.8 upgrade.
test(infra): Fix compilation errors from TS3.8 upgrade.

PiperOrigin-RevId: 294955261

material-components/material-components-web,material-components/material-components-web,material-components/material-components-web