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

How do I write code to test components in the pages router in Next.js? #28

Open
gorcab opened this issue Mar 24, 2024 · 1 comment
Open

Comments

@gorcab
Copy link

gorcab commented Mar 24, 2024

The examples only have test code for the app router, and there doesn't seem to be any example code for testing single component.

I would like to see example code to test a page in the pages router and example code to test a single component.

@kolodny
Copy link
Owner

kolodny commented Apr 3, 2024

Do you have any PoC or general outline of what you have in mind? You should be able to import and test any component

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

2 participants