{"id":25947570,"url":"https://github.com/nielssteensma/sequelize-typescript-mock-examples","last_synced_at":"2025-03-04T10:20:10.215Z","repository":{"id":40791358,"uuid":"190061610","full_name":"NielsSteensma/sequelize-typescript-mock-examples","owner":"NielsSteensma","description":"Examples of mocking sequelize-typescript models with Jest.","archived":false,"fork":false,"pushed_at":"2023-12-03T10:07:39.000Z","size":126,"stargazers_count":8,"open_issues_count":27,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-12-03T11:22:10.356Z","etag":null,"topics":["jest","mock","sequelize-typescript","testing"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NielsSteensma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-03T18:39:00.000Z","updated_at":"2023-12-03T11:22:10.357Z","dependencies_parsed_at":"2023-01-18T09:48:14.023Z","dependency_job_id":null,"html_url":"https://github.com/NielsSteensma/sequelize-typescript-mock-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NielsSteensma%2Fsequelize-typescript-mock-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NielsSteensma%2Fsequelize-typescript-mock-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NielsSteensma%2Fsequelize-typescript-mock-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NielsSteensma%2Fsequelize-typescript-mock-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NielsSteensma","download_url":"https://codeload.github.com/NielsSteensma/sequelize-typescript-mock-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241827260,"owners_count":20026647,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jest","mock","sequelize-typescript","testing"],"created_at":"2025-03-04T10:20:09.431Z","updated_at":"2025-03-04T10:20:10.187Z","avatar_url":"https://github.com/NielsSteensma.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Examples of mocking Sequelize-Typescript models with Jest\n[![Build Status](https://travis-ci.com/NielsSteensma/sequelize-typescript-mock-examples.svg?branch=master)](https://travis-ci.com/NielsSteensma/sequelize-typescript-mock-examples)\n[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com/)\n\nMocking 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.\n\n#### Some reasons why you want to mock your models:\n - You can check if all arguments where correctly passed to the ORM.\n - You can return own defined resultsets from a mocked database call.\n \n #### Guide\n To see how you can create mocks for your models check out the test folder inside this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnielssteensma%2Fsequelize-typescript-mock-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnielssteensma%2Fsequelize-typescript-mock-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnielssteensma%2Fsequelize-typescript-mock-examples/lists"}