{"id":21662472,"url":"https://github.com/sayegh7/goosemock","last_synced_at":"2025-09-11T12:34:34.296Z","repository":{"id":57252487,"uuid":"146760567","full_name":"Sayegh7/goosemock","owner":"Sayegh7","description":"Lightweight in-memory mongoose mocking","archived":false,"fork":false,"pushed_at":"2019-01-28T17:15:16.000Z","size":35,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-13T12:50:49.352Z","etag":null,"topics":["javascript","mocking-framework","mongoose","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Sayegh7.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":"2018-08-30T14:19:35.000Z","updated_at":"2019-01-28T17:15:19.000Z","dependencies_parsed_at":"2022-08-31T22:11:12.756Z","dependency_job_id":null,"html_url":"https://github.com/Sayegh7/goosemock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sayegh7/goosemock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sayegh7%2Fgoosemock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sayegh7%2Fgoosemock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sayegh7%2Fgoosemock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sayegh7%2Fgoosemock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sayegh7","download_url":"https://codeload.github.com/Sayegh7/goosemock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sayegh7%2Fgoosemock/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266796854,"owners_count":23985486,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["javascript","mocking-framework","mongoose","nodejs"],"created_at":"2024-11-25T10:16:22.737Z","updated_at":"2025-07-24T05:35:47.359Z","avatar_url":"https://github.com/Sayegh7.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Goosemock\n[![npm version](https://badge.fury.io/js/goosemock.svg)](https://badge.fury.io/js/goosemock)\n![npm](https://img.shields.io/npm/dt/goosemock.svg)\n\nGoosemock is mongoose mocking framework. This package was created because we needed to write unit tests on a backend that used mongoose and we needed something to mock the behavior of mongoose but in a dynamic way. It is essentially an in memory database but without the need for a even a database server or any installations. All mongoose functions affect in-memory data data structures.\n\n## Installation\nInstall Goosemock with npm\n```bash\nnpm install goosemock\n```\n\n## Usage\nUsing goosemock is simple. Simply require and run it after mongoose like so:\n```javascript\nconst mongoose = require('mongoose')\nconst goosemock = require('goosemock')\n\ngoosemock()\n```\nNow all calls to mongoose functions will be executed in-memory. Note also that even `mongoose.connect()` will no longer be able to connect to the server as it is intercepted by goosemock.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsayegh7%2Fgoosemock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsayegh7%2Fgoosemock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsayegh7%2Fgoosemock/lists"}