You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mocking your models is a great way to test your application without actually hitting the database. This repository shows how you can do this for sequelize-typescript package.
6
+
7
+
#### Some reasons why you want to mock your models:
8
+
- You can check if all arguments where correctly passed to the ORM.
9
+
- You can return own defined resultsets from a mocked database call.
10
+
11
+
#### Guide
12
+
To see how you can create mocks for your models check out the test folder inside this repository.
0 commit comments