cypress-mongodb
Version:
Cypress MongoDB plugin
18 lines • 603 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.runCommand = runCommand;
function runCommand(command, options) {
return cy.env(['mongodb']).then(({ mongodb }) => {
const args = {
uri: mongodb.uri,
database: options?.database || mongodb.database,
collection: options?.collection || mongodb.collection,
options: options,
command: command,
};
return cy.task('runCommand', args).then((result) => {
return result;
});
});
}
//# sourceMappingURL=command.js.map