Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests? #1203

Closed
sgoodrow opened this issue Sep 22, 2023 · 3 comments
Closed

Tests? #1203

sgoodrow opened this issue Sep 22, 2023 · 3 comments

Comments

@sgoodrow
Copy link

I've found many examples NextJS apps across the Internet but they're all only partial representations of a real application, often leaving out necessary patterns like tests.

I know NextJS itself doesn't have an opinion about which testing libraries to use, but I worry that the lack of dogfooding of test libraries is causing a sizable gap in compatibility and accessibility.

Please consider adding tests to this example.

Thanks!

@leerob
Copy link
Member

leerob commented Sep 24, 2023

Hey! We have some examples of testing + Next.js here for reference https://nextjs.org/docs/pages/building-your-application/optimizing/testing.

@leerob leerob closed this as completed Sep 24, 2023
@sgoodrow
Copy link
Author

sgoodrow commented Sep 24, 2023

Hi Lee - yes, I'm familiar with these examples, but they're incredibly trivial and don't demonstrate patterns that manage the challenges that emerge in real applications, such as how to organize tests or test complex server or cross-server/client component behaviors.

It would be immensely valuable to include examples that accurately reflect real application requirements.

@tkrotoff
Copy link

@leerob

  • Out of 343 examples only 3 (!) of them come with tests (and these are the most basic examples one could come up with)

Also,


vercel/next.js#28173 (reply in thread)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants