Is there javascript/nodejs version of UT test class or framework for ES?

Is there any nodejs or javascript version of Elasticsearch unit test class or framework ?
Our code is to connect to ES, in UT, we stop ES to run test , I found there is java version of test framework Client https://www.elastic.co/guide/en/elasticsearch/reference/current/testing-framework.html , I also found a personal UT class written in java https://github.com/sgmarghade/mock-elasticsearch-server/blob/master/src/main/java/com/sgmarghade/elasticsearchmock/MockElasticsearchServer.java

        node = nodeBuilder()
                .local(true)
                .settings(elasticsearchSettings.build())
                .node();
    }

    public void refresh(final String index) {
        node.client().admin().indices().refresh(new RefreshRequest().indices(index)).actionGet();
    }

The node.client() is connecting to a jvm level ES , it can be used in UT . I just wonder whether there is nodejs/javascript version of UT test class like this ? Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.