monky
monky copied to clipboard
Mongoose fixtures library inspired by factory_girl
Given a schema similar to: ``` const mongoose = require('mongoose'); const TEAM_COLORS = { red: '#890000', blue: '#003799', yellow: '#c4b500', green: '#167200', }; const schema = new mongoose.Schema({ color: {...
Open to submitting a pr here but haven't dug into where the definitions live in the code yet. Monky's fixture functionality raise problems for js code intellisense and the typescript...
try to run record = await monky.create('User', {email: '[email protected]'}); and got Model.prototype.save() no longer accepts a callback I am using "mongoose": "^7.6.3",
Bumps [nanoid](https://github.com/ai/nanoid) to 3.3.3 and updates ancestor dependency [mocha](https://github.com/mochajs/mocha). These dependencies need to be updated together. Updates `nanoid` from 3.1.20 to 3.3.3 Changelog Sourced from nanoid's changelog. 3.3.3 Reduced size...
Bumps [minimatch](https://github.com/isaacs/minimatch) to 5.0.1 and updates ancestor dependency [mocha](https://github.com/mochajs/mocha). These dependencies need to be updated together. Updates `minimatch` from 3.0.4 to 5.0.1 Changelog Sourced from minimatch's changelog. change log 9.0...
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 3.0.0 to 3.0.1. Commits f545bdb 3.0.1 c57d4c2 fix a few old XO issues for backport 419250f Fix potential ReDoS (#37) See full diff in compare view [ from 0.8.3 to 0.8.4. Changelog Sourced from mpath's changelog. 0.8.4 / 2021-09-01 fix: throw error if parts contains an element that isn't a string or number #13 Commits...
Bumps [mongoose](https://github.com/Automattic/mongoose) from 5.12.7 to 5.13.15. Changelog Sourced from mongoose's changelog. 5.13.15 / 2022-08-22 fix: backport fix for CVE-2022-2564 #12281 shubanker docs: fix broken link from findandmodify method deprecation #11366...