They are shown when you run the tests. Until then they appear as a hidden requirement.
Build a search box that filters a list as you type. You practice controlled inputs and data derived from state.
aria-label="Search fruit" and the text No results: the tests use them.li.No results is shown and there are no list items.Apple, Banana, Cherry, Mango and Pineapple.an → you see Banana and Mango.zzz → you see No results.The visible fruits are computed from query: they do not need their own state.
Array.prototype.filter together with includes does almost all the work.
When no fruit is left, render a message instead of the list.
The console is empty
Run your code with Ctrl+S
This console starts empty every time the preview loads. The browser's DevTools console keeps the messages with Preserve log.