Zaista / cypress-mongodb

Cypress MongoDB plugin
MIT License
17 stars 8 forks source link

insertOne command returns wrong error #3

Closed PabloRamirezDev closed 2 years ago

PabloRamirezDev commented 2 years ago

The insertOne command throws the error Pipeline must be an object, although it doesn't receive any pipeline parameter.

Checked the source code and could solve it changing args.pipeline by args.document in the insertOne util.

Zaista commented 2 years ago

Feel free to fork, fix & open PR, otherwise I'll try and do it over the weekend. Thanks for raising the issue.

Zaista commented 2 years ago

Merged, and v2.1.2 published to npm.