Hi,
I am using Elasticsearch (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 in my test no response:
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?