jmcdo29 / jmcdo29/testing-nestjs

[NEW TEST] Custom Decorator Testing

Open
#857 5 comments 1 reaction 1 assignee Claimed by @jmcdo29 View on GitHub
enhancement
Dominant language
TypeScript
Stars
3k
Forks
375
PR merge metrics
No merged PRs in 30d

Description

**Unit Tests for Custom Decorators**

I created a custom decorator which can be added to Service methods for Caching Data.
But unfortunately cannot find any simple documentation which can provide a way we can test Custom Decorators.
It would be great if you can add something around it.

I found this from the official Github code as a starting point, but since this is such a nice place for all the nest js testing stuff, adding something around decorators would be a plus -https://github.com/nestjs/nest/blob/master/packages/common/test/decorators/cache.decorator.spec.ts

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.