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

Docs: Missing "Testing" Page Under "Optimizing" for the "Using App Router" Section #52347

Closed
craigmcc opened this issue Jul 6, 2023 · 2 comments
Labels
Documentation Related to Next.js' official documentation. locked

Comments

@craigmcc
Copy link

craigmcc commented Jul 6, 2023

What is the improvement or update you wish to see?

The Using Pages Router section, under Optimizing, has a nice page about how to set up tests:

Testing

There is no corresponding page in the Using Apps Router section

It would be really helpful to have such a page for people using the Apps Router documentation (even if it is a pointer back to the same content).

Is there any context that might help us understand?

I am trying to use the apps router, with some server actions for accessing my database. The actions themselves work fine in the app, but Jest throws an error when I try to execute a test for them.

Cannot find module 'private-next-rsc-action-proxy' from 'src/actions/LibraryActions.ts'

(LibraryActions.ts is a bunch of server actions talking to the library database, with "use server" at the top.)

I do not know if there is something weird in my Jest setup, or if that is an actual issue.

Does the docs page already exist? Please link to it.

No response

@craigmcc craigmcc added the Documentation Related to Next.js' official documentation. label Jul 6, 2023
@balazsorban44
Copy link
Member

Duplicate of #50334

Related #47299, #47448

@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot added the locked label Aug 9, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation Related to Next.js' official documentation. locked
Projects
None yet
Development

No branches or pull requests

2 participants