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

(Yu Fei Cai) #1

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 , I also found a personal UT class written in java

        node = nodeBuilder()

    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

(system) #2

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