next-page-tester / next-page-tester

DEPRECATED - DOM integration testing for Next.js
MIT License
622 stars 28 forks source link

Enable `useDocument` option again #268

Open toomuchdesign opened 3 years ago

toomuchdesign commented 3 years ago

🚀 Feature Proposal

useDocument option was disabled in #267 (v0.29.0) because of #263.

As mentioned in #263, we should try to enable it again as soon as Next.js document rendering APIs stabilize.

Here is how the previous Document.renderDocument call was replaced.

toomuchdesign commented 3 years ago

It seems that Next skipped v11.1.3 and went for v12 directly.

dbehmoaras commented 2 years ago

If the useDocument feature is disable, does this mean we can't run tests on individual pages for UI specific features?

toomuchdesign commented 2 years ago

No, useDocument renders Next.js custom document.