0

In the Next.js application, I am using link tag in a component as following

 <Link href={`/article/${Id}`} >
                    <a
                      title={Title}
                      role="link"
                      onClick={() => {
                        ///
                      }}
                    >
                      {Title}
                    </a>
  </Link>

If I try to print screen.debug() of the rendered component in a test, it gives me an anchor tag with all attributes but href. How can I resolve this?

paraS elixiR
  • 1,866
  • 1
  • 18
  • 26

0 Answers0