BlinkUX / sequelize-mock

A simple mock interface specifically for testing code relying on Sequelize models
https://sequelize-mock.readthedocs.io
MIT License
139 stars 73 forks source link

Support v5 #84

Open rgaiacs opened 4 years ago

rgaiacs commented 4 years ago

Many model based aliases has been removed https://github.com/sequelize/sequelize/issues/9372

SippieCup commented 4 years ago

We recently forked sequelize-mock for v5 and updating a few pieces which were showing their age.

If you want to try using it, you can find it here: https://github.com/foyer-Inc/sequelize-mock or npm install sequelize-mock-v5

We have updated it to be (mostly) compatible with all v5 calls (some of the returned promises changed) ripped out bluebird and moved everything to async/await.

We are actively working on having it be perfect, and will be porting it to typescript soon. We moved it into production earlier today and have no issues with running it with every query we have thrown at it.