How can I test if a prop is passed to child?
问题 My component looks something like this: (It has more functionality as well as columns, but I have not included that to make the example simpler) const WeatherReport: FunctionComponent<Props> = ({ cityWeatherCollection, loading, rerender }) => { /* some use effects skipped */ /* some event handlers skipped */ const columns = React.useMemo(() => [ { header: 'City', cell: ({ name, title }: EnhancedCityWeather) => <Link to={`/${name}`} className="city">{title}</Link> }, { header: 'Temp', cell: ({