yarn @nestjs/testing 5.1.0
v5.1.0

latest releases: 10.3.8, 10.3.7, 10.3.6...
5 years ago

Features

  • common: FileFieldsInterceptor upload multiple files with different names (multer.fields) #741
  • core: support async dynamic modules #800
  • core: exclude routes in the MiddlewareBuilder #790
  • core: support RouteInfo in the MiddlewareBuilder (restrict middleware to certain request method)
forRoutes(
   { path: 'cats', method: RequestMethod.GET },
   { path: 'cats', method: RequestMethod.POST },
)

Bug Fixes

  • common: empty body ends up with 500 error (ValidationPipe) #734
  • core: the last one of APP_ providers get registered #812
  • core: middleware runs more than once #779
  • core: custom decorators not being treated as default ones #765
  • microservices: allow gRPC stream cancellation #773

Improvements

  • common: expose axiosRef from HttpService#842
  • common: make MiddlewareFunction generic #778
  • microservices: propagate internal gRPC error #844
  • testing: type signature for TestModule.get() is too restrictive #772

Don't miss a new testing release

NewReleases is sending notifications on new releases.