Add ignores to fix jest-haste failures (#50875)
This pops up occasionally depending on order tests are run and `.next` being present and `jest` trying to process modules inside this folder.
x-ref: https://github.com/vercel/next.js/actions/runs/5193671295/jobs/9364540542?pr=50869