UNPKG

cypress-mongodb

Version:
18 lines 603 B
"use strict"; 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