Skip to content

Commit

Permalink
Include blog post link to Unit Testing article
Browse files Browse the repository at this point in the history
  • Loading branch information
pwizla authored Mar 27, 2024
1 parent 2c9d826 commit 7a3db56
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docusaurus/docs/dev-docs/backend-customization/controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,9 @@ export default {
When a new [content-type](/dev-docs/backend-customization/models#content-types) is created, Strapi builds a generic controller with placeholder code, ready to be customized.
:::

:::tip
To see a possible advanced usage for custom controllers, read the [services and controllers](/dev-docs/backend-customization/examples/services-and-controllers) page of the backend customization examples cookbook.
:::tip Tips
- To see a possible advanced usage for custom controllers, read the [services and controllers](/dev-docs/backend-customization/examples/services-and-controllers) page of the backend customization examples cookbook.
- If you want to implement unit testing to your controllers, this [blog post](https://strapi.io/blog/automated-testing-for-strapi-api-with-jest-and-supertest) should get you covered.
:::

### Sanitization and Validation in controllers
Expand Down

0 comments on commit 7a3db56

Please sign in to comment.