Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 833 Bytes

File metadata and controls

12 lines (9 loc) · 833 Bytes

Examples of mocking Sequelize-Typescript models with Jest

Build Status Renovate enabled

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.

Some reasons why you want to mock your models:

  • You can check if all arguments where correctly passed to the ORM.
  • You can return own defined resultsets from a mocked database call.

Guide

To see how you can create mocks for your models check out the test folder inside this repository.