Skip to content

Commit 2d09956

Browse files
committed
2 parents f384ccd + 6872c0f commit 2d09956

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## Examples of mocking Sequelize-Typescript models with Jest
2+
[![Build Status](https://travis-ci.com/NielsSteensma/sequelize-typescript-mock-examples.svg?branch=master)](https://travis-ci.com/NielsSteensma/sequelize-typescript-mock-examples)
3+
[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com/)
4+
5+
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

Comments
 (0)