import { render , screen } from "@testing-library/react" ; import Navigation from "./Navigation" ; const links = [ "blog" , "now" , "uses" , "hire me" , "contact" ] ; test ( "shows links" , ( ) => { render ( < Navigation />); links . forEach ( link => expect ( screen . getByText ( link ) ) ) ; } ) ;