question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Future of `next-page-tester`

See original GitHub issue

I open this issue to:

  • update next-page-tester users about the maintenance status of this library
  • announce that I will not be be able to actively maintain next-page-tester anymore

next-page-tester maintenance status

For about one year @Meemaw and I have developed and maintained next-page-tester. I started this library to explore an alternative testing approach with Next.js and @Meemaw brought in so many good ideas.

This testing approach proved to have pros and cons and enabled some valuable testing strategies. Since based on DOM testing, it proved to be able to cover a wide range of Next.js testing scenarios with the same tools used to test React component (eg. testing-library).

next-page-tester development/maintenance revealed to be quite problematic for a few reasons:

  • It relies on a few Next.js internals which can change without notice in any moment. This means a lot of maintenance effort to align next-page-tester implementation with Next.js (and staying updated about Next.js internals evolution).

  • It simplistically re-implements most of Next.js output (supported by TypeScript). This means any new Next.js feature has to be implemented/adjusted based on users’ feedback/issues

  • There’s no way to know whether next-page-tester will be able to support future Next.js features/versions

  • Since next-page-tester is not supported in any way by Next.js, it won’t be able to reach a significant degree of adoption (for good reasons)

For the reasons mentioned above next-page-tester is currently stuck over 2 major issues:

Future of next-page-tester

During the last year I haven’t touched Next.js, and it’s getting hard to follow it’s evolution for the sole purpose of maintaining next-page-tester.

I’m convinced that the main downside of this project consists of its maintenance being 100% dependent of Next.js evolution. I personally came to the conclusion that the only viable solution is letting Vercel decide whether they want to invest on such a testing strategy and let them expose some Next.js bindings to enable DOM testing.

Beside the 2 issues mentioned above, there are new features waiting to be implemented which I couldn’t take care of.

In order to make further development easier I moved next-page-tester to a dedicated GitHub org. In the meanwhile @jasonwilliams joined maintainers team 🙌 .

I’m still providing support and sharing my project-specific knowledge to possible contributors.

I big hand up to all the contributors who spent time and love on this project. You proved that open source can be sustainable and human friendly sometimes! ❤️

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:16
  • Comments:18

github_iconTop GitHub Comments

4reactions
leerobcommented, Dec 19, 2021

I’d love to understand what hooks you’d need into Next.js to not have to rely on internals. Could you share more?

2reactions
toomuchdesigncommented, Jan 10, 2022

So the zero-creativity outcome would be: next-page-tester/next-page-tester. What about that? 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

next-page-tester DEPRECATED - GitHub
Data fetching methods' context req and res objects are mocked with node-mocks-http · Next page tester is designed to be used with any...
Read more >
next-page-tester - npm
Enable DOM integration testing on Next.js pages. ... Start using next-page-tester in your project by running `npm i next-page-tester`.
Read more >
The Future of Testing - What It Might Be? - PractiTest
What will be the future of testing? Topics such as big data, AI/ ML, blockchain and security will impact software testing in the...
Read more >
Frontend Testing: A Guide for 2022 and Beyond - Netguru
In this article, we'll discuss what frontend testing is, why it's important, and how you can get started with it.
Read more >
How to Write Awesome End to End Tests for Your Next.js CMS
In this tutorial, we'll guide you through the process of setting up some common testing tools, and we'll step through the process of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found