cypress-mongodb
Advanced tools
Comparing version 3.0.1 to 3.0.2
import { Document } from 'mongodb'; | ||
import Chainable = Cypress.Chainable; | ||
export declare function insertOne(document: Document, options: { | ||
database: string; | ||
collection: string; | ||
forceObjectId: boolean; | ||
}): Chainable; | ||
export declare function insertMany(documents: Document[], options: { | ||
database: string; | ||
collection: string; | ||
forceObjectId: boolean; | ||
}): Chainable; | ||
import { MongoOptions } from '../index'; | ||
export declare function insertOne(document: Document, options: MongoOptions): Chainable; | ||
export declare function insertMany(documents: Document[], options: MongoOptions): Chainable; |
@@ -12,12 +12,4 @@ import { Document } from 'mongodb'; | ||
}): Chainable<Subject>; | ||
insertOne(document: Document, options?: { | ||
collection: string; | ||
database: string; | ||
forceObjectId: boolean; | ||
}): Chainable<Subject>; | ||
insertMany(documents: Document[], options?: { | ||
collection: string; | ||
database: string; | ||
forceObjectId: boolean; | ||
}): Chainable<Subject>; | ||
insertOne(document: Document, options?: MongoOptions): Chainable<Subject>; | ||
insertMany(documents: Document[], options?: MongoOptions): Chainable<Subject>; | ||
deleteOne(filter: Document, options?: MongoOptions): Chainable<Subject>; | ||
@@ -24,0 +16,0 @@ deleteMany(filter: Document, options?: MongoOptions): Chainable<Subject>; |
@@ -1,2 +0,2 @@ | ||
Copyright 2021 Jovan Ilić | ||
Copyright 2022 Jovan Ilić | ||
@@ -3,0 +3,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
{ | ||
"name": "cypress-mongodb", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Cypress MongoDB plugin", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -11,6 +11,10 @@ # Introduction | ||
# Supported and tested MongoDB versions | ||
4.0, 4.2, 4.4, 5.0 | ||
# Usage | ||
``` | ||
cy.createCollection('new_collection', 'new_database'); // creates both collection and database | ||
cy.createCollection('new_collection', { database: 'new_database' }); // creates both collection and database | ||
@@ -91,3 +95,3 @@ const oneDocument = {document: 1}; | ||
*/ | ||
export default (on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions) => { | ||
export default (on, config) => { | ||
mongo.configurePlugin(on); | ||
@@ -94,0 +98,0 @@ } |
112
45070
839