Weaviate client typescript close function

Hi everyone. I cannot find a function to close the weaviate client. I need to use jest and I get the error

Jest has detected the following 1 open handle potentially keeping Jest from exiting:


      34 | );
      35 |
    > 36 | export const weaviateClient: WeaviateClient = weaviate.client({

Hi, I’ve passed on this query internally.

Also I’ve moved this to “Support”. Thanks!

Hello @Grandma_Kisses! I have not run into this issue, so I don’t immediately have a solution to resolve this.

I have a feeling that this is being caused by the underlying isomorphic-fetch, as this can sometimes occur when a response stream is not fully read, etc.

Would it be possible to provide a small example of the test which is causing this?

1 Like