UNPKG

cypress-mongodb

Version:
16 lines (15 loc) 616 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.runCommand = runCommand; function runCommand(command, options) { var args = { uri: Cypress.env('mongodb').uri, database: (options === null || options === void 0 ? void 0 : options.database) || Cypress.env('mongodb').database, collection: (options === null || options === void 0 ? void 0 : options.collection) || Cypress.env('mongodb').collection, options: options, command: command, }; return cy.task('runCommand', args).then(function (result) { return result; }); }