OpenSearch Integration tests with Jest

Hi,

I am using OpenSearch in a Nx monorepo in a node js Serverless app that connects to aws services. I would like to use jest to test but so far I have not been able to get responses from OpenSearch.

Even if I use the client directly as follows:

const { Client } = require("@opensearch-project/opensearch")
export const client = new Client({ node: "https://myurl.awszone.amazonaws.com/" })

In my test:

            const data = await client.search(params)
            expect(data.id).not.toBeNull()

Same error:
Async callback was not invoked within the 50000 ms timeout specified by jest.setTimeout.Error

I have incremented the time but same error.

Do you have any suggestions as to test?

Did you ever make progress on this challenge? If so, can you post what you did?