{"repo":"typegoose/mongodb-memory-server","free":true,"listed":false,"github":"https://github.com/typegoose/mongodb-memory-server","clone":"git clone https://github.com/typegoose/mongodb-memory-server.git","description":"Manage & spin up mongodb server binaries with zero(or slight) configuration for tests.","language":"TypeScript","stars":2842,"topics":["mongodb","mongoose","mock","testing","testing-tools","tests"],"license":"MIT","category":"dev-tools","readme_excerpt":"MongoDB In-Memory Server This package spins up an actual/real MongoDB server programmatically from within nodejs, for testing or mocking during development. By default it holds the data in memory. A fresh spun up mongod process takes about 7Mb of memory. The server will allow you to connect your favorite ODM or client library to the MongoDB server and run integration tests isolated from each other. On install, this package downloads the latest MongoDB binaries and saves them to a cache folder. (only mongodb-memory-server-core does not download on postinstall ) On starting a new instance of the memory server, if the binary cannot be found, it will be auto-downloaded (if RUNTIME DOWNLOAD option is truthy), thus the first run may take some time. All further runs will be fast, because they will use the downloaded binaries. This package automatically downloads binaries from https://fastdl.mongodb.org/ according to your operating system. You can see all available versions for Linux (Ubuntu, RHEL, Debian, SUSE, Amazon), OSX, and Windows. If your network is behind a proxy, make sure that it is configured through the HTTPS PROXY or HTTP PROXY environment variable. Every MongoMemoryServer instance creates and starts a fresh MongoDB server on some free port. You may start up several mongod simultaneously. When you terminate your script or call stop() , the MongoDB server(s) will be automatically shutdown. Works perfectly with any CI runner that can run NodeJS applications. Table of Cont","default_branch":null,"files":null,"tree":[],"storefront":"/r/typegoose","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/typegoose/mongodb-memory-server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}