Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support v5 #84

Open
3 tasks
rgaiacs opened this issue Jun 5, 2020 · 1 comment
Open
3 tasks

Support v5 #84

rgaiacs opened this issue Jun 5, 2020 · 1 comment

Comments

@rgaiacs
Copy link

rgaiacs commented Jun 5, 2020

Many model based aliases has been removed sequelize/sequelize#9372

  • findByPk
  • findOrBuild
  • update
rgaiacs added a commit to CRICDatabase/sequelize-mock that referenced this issue Jun 5, 2020
@SippieCup
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants