Skip to content

[Bug]: Unit testing documentation #689

@magnusrodseth

Description

@magnusrodseth

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.source: Dev DocsPRs/issues targeting the Developer Docsstatus: pending reproductionWaiting for free time to reproduce the issue, or more informationtarget: v4Documentation PRs/issues targeting content from docs.strapi.io (main branch).

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions