Files
threshold-ui/ui/admin/tests/e2e/helpers/vault-cli.js
T

19 lines
361 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
/* eslint-disable no-undef */
const { execSync } = require('child_process');
/**
* Checks that the vault cli is available
*/
exports.checkVaultCli = async () => {
try {
execSync('which vault');
} catch (e) {
throw new Error('vault does not exist on the path');
}
};