-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
pr: fixUsed on the docs repo for anything that is not "new" or "updated" content: chore, typos, fixes, etc.Used on the docs repo for anything that is not "new" or "updated" content: chore, typos, fixes, etc.source: Dev DocsPRs/issues targeting the Developer DocsPRs/issues targeting the Developer Docsstatus: pending reproductionWaiting for free time to reproduce the issue, or more informationWaiting for free time to reproduce the issue, or more informationtarget: v4Documentation PRs/issues targeting content from docs.strapi.io (main branch).Documentation PRs/issues targeting content from docs.strapi.io (main branch).
Description
Link to the documentation page or resource
https://docs.strapi.io/developer-docs/latest/guides/unit-testing.html#install-test-tools
Describe the bug
The guide is definitely not up to date to Strapi v4.
In ./tests/helpers/strapi.js, I noticed a couple of required changes. instance.app.use() is no longer a method. Furthermore, instance.router is not defined either. I believe it has been changed to instance.server.router, but I'm not sure.
It is not possible to follow this documentation when using Strapi v4 due to the many flaws.
Additional context
No response
Suggested improvements or fixes
I suggest walking through the documentation by yourself and observing everything that is not updated.
Related issue(s)/PR(s)
No response
Metadata
Metadata
Assignees
Labels
pr: fixUsed on the docs repo for anything that is not "new" or "updated" content: chore, typos, fixes, etc.Used on the docs repo for anything that is not "new" or "updated" content: chore, typos, fixes, etc.source: Dev DocsPRs/issues targeting the Developer DocsPRs/issues targeting the Developer Docsstatus: pending reproductionWaiting for free time to reproduce the issue, or more informationWaiting for free time to reproduce the issue, or more informationtarget: v4Documentation PRs/issues targeting content from docs.strapi.io (main branch).Documentation PRs/issues targeting content from docs.strapi.io (main branch).