drop-mongodb-collections

    1.2.6 • Public • Published

    drop-mongodb-collections

    Drops all non system mongodb collections. To be used for tests.

    Build Status

    Usage

    > npm i drop-mongodb-collections --save-dev
    const dropMongoDbCollections = require('drop-mongodb-collections')('mongodb://localhost/tests');
    
    // Mocha
    
    describe('something', function() {
      // Cleanup db before running tests
      beforeEach(dropMongoDbCollections);
    
      // Your tests go here
    });

    Install

    npm i drop-mongodb-collections

    DownloadsWeekly Downloads

    15

    Version

    1.2.6

    License

    ISC

    Unpacked Size

    8.47 kB

    Total Files

    10

    Last publish

    Collaborators

    • saintedlama