dockest
Version:
Dockest is an integration testing tool aimed at alleviating the process of evaluating unit tests whilst running multi-container Docker applications.
15 lines • 645 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.runRunnerCommands = void 0;
const execa_wrapper_1 = require("../../utils/execa-wrapper");
const LOG_PREFIX = '[Dockest Service Commands]';
const runRunnerCommands = async ({ runner, runner: { commands } }) => {
for (let command of commands) {
if (typeof command === 'function') {
command = command(runner.containerId);
}
(0, execa_wrapper_1.execaWrapper)(command, { runner, logPrefix: LOG_PREFIX, logStdout: true });
}
};
exports.runRunnerCommands = runRunnerCommands;
//# sourceMappingURL=run-runner-commands.js.map