OpenSearch Integration tests with Jest


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: "" })

In my test:

            const data = await

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?