mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
Add comprehensive unit tests for ClassSerializerInterceptor which previously had no test coverage despite being a public API. Test coverage includes: - constructor with custom transformer package injection - intercept() with RxJS pipe and context options merging - serialize() for arrays, objects, and StreamableFile handling - transformToPlain() with type conversion and instanceOf checks - getContextOptions() with metadata precedence (handler > class) - Edge cases: null/undefined, mixed arrays, Date objects, primitives Total: 25+ test cases covering all public methods and edge cases.