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

14 lines
283 B
JavaScript

/* 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');
}
};