#JEST open handles TLSWRAP on 'firstValueFrom(' using axios

4 messages · Page 1 of 1 (latest)

flat parcel
#

Hello,

I use @hot brook/axios for my services as https://docs.nestjs.com/techniques/http-module#full-example. Then I'm testing my services with @hot brook/testing but it prevent jest from exiting (see picture linked).

Why ? Thanks in advance

rocky lark
#

Possibly this.API is coming up as undefined? Not sure, haven't seen the HttpService throw that before specifically in testing

flat parcel
#

Finally, I'm forced to add await process.nextTick(() => {}); before each Axios request. ( found here https://stackoverflow.com/questions/71159026/jest-has-detected-open-handle-for-firstvaluefrom-in-nestjs ) But I have literally no idea and (the author too) why