How to use the @hpcc-js/comms.locateClientTools function in @hpcc-js/comms

To help you get started, we’ve selected a few @hpcc-js/comms examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hpcc-systems / Visualization / tests / test-comms / src / clienttools / eclcc.spec.ts View on Github external
it("basic", function () {
            expect(locateClientTools).to.be.a("function");
            return locateClientTools().then(clienttools => {
            }).catch(e => {
                //  No eclcc on travis...
            });
        });
github hpcc-systems / Visualization / tests / test-comms / src / clienttools / eclcc.spec.ts View on Github external
function logVersion(build: string): Promise {
    return locateClientTools("", build).then(ct => {
        return ct.version().then(version => {
            console.log(`${build} => ${version.toString()}`);
        });
    });
}
github hpcc-systems / Visualization / tests / test-comms / src / clienttools / eclcc.spec.ts View on Github external
it("end2end", function () {
                return locateClientTools(undefined, undefined, ".").then((clientTools) => {
                    return clientTools.createArchive("./src/clienttools/some.ecl");
                }).then(archive => {
                    return Workunit.submit({ baseUrl: ESP_URL }, "hthor", archive.content);
                }).then((wu) => {
                    return wu.watchUntilComplete();
                }).then((wu) => {
                    return wu.fetchResults().then((results) => {
                        return results[0].fetchRows();
                    }).then((rows) => {
                        return wu;
                    });
                }).then((wu) => {
                    return wu.delete();
                });
            });