All Projects → pawap90 → test-mongoose-inmemory

pawap90 / test-mongoose-inmemory

Licence: other
A sample project that demonstrates how to test mongoose operations through jest with an in-memory database.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to test-mongoose-inmemory

Ecommerce
Angular 6 Ecommerce Application POC
Stars: ✭ 46 (+17.95%)
Mutual labels:  mongoose
nuada-cli
Nuada CLI was designed to improve your development experience by using ExpressJS and Mongoose tools.
Stars: ✭ 19 (-51.28%)
Mutual labels:  mongoose
node-server-template
This is Node.js server tidy template / boilerplate with Express (with asyncified handlers, custom error handler) framework and MongoDb. The server use ES6 and above. On different branches you can see different techniques' and technologies' usage, such as Kafka, nodemailer, file download... You also can find postman collections.
Stars: ✭ 116 (+197.44%)
Mutual labels:  mongoose
arc
Fullstack open source Invoicing application made with MongoDB, Express, React & Nodejs (MERN)
Stars: ✭ 1,291 (+3210.26%)
Mutual labels:  mongoose
add-my-name
No more WhatsApp spams 🎉
Stars: ✭ 16 (-58.97%)
Mutual labels:  mongoose
vue-cosmosdb
Cosmos DB, Express.js, Vue, and Node.js app
Stars: ✭ 58 (+48.72%)
Mutual labels:  mongoose
nap
[Deprecated] NextJS + Apollo + PassportJS
Stars: ✭ 52 (+33.33%)
Mutual labels:  mongoose
TvrboReact
Dream starter project: React, Redux, React Router, Webpack
Stars: ✭ 13 (-66.67%)
Mutual labels:  mongoose
code-examples
Example projects for my personal blog.
Stars: ✭ 144 (+269.23%)
Mutual labels:  mongoose
nodejs-scaffolding
A node.js sample application that demonstrates an architecture for building a complete production API with Node.JS, Express.JS and MongoDB
Stars: ✭ 33 (-15.38%)
Mutual labels:  mongoose
Blog2.0
基于Nuxt(ssr)+Vuetify+elementUi+nodeExpress+mongoDb的个人博客全栈项目
Stars: ✭ 20 (-48.72%)
Mutual labels:  mongoose
react-forum-system
React Forum System
Stars: ✭ 16 (-58.97%)
Mutual labels:  mongoose
bechdel-test
Does your favorite film pass the test?
Stars: ✭ 25 (-35.9%)
Mutual labels:  mongoose
derivejs
DeriveJS is a reactive ODM - Object Document Mapper - framework, a "wrapper" around a database, that removes all the hassle of data-persistence by handling it transparently in the background, in a DRY manner.
Stars: ✭ 54 (+38.46%)
Mutual labels:  mongoose
koa-session-mongoose
Mongoose store for Koa sessions
Stars: ✭ 29 (-25.64%)
Mutual labels:  mongoose
colt-steele-advanced
Notes for the Colt Steele Advanced Boot Camp
Stars: ✭ 29 (-25.64%)
Mutual labels:  mongoose
how-to-build-your-own-uber-for-x-app
Code for my blog post on How to Build Your Own Uber-for-X App
Stars: ✭ 138 (+253.85%)
Mutual labels:  mongoose
Apriliya-Api
Simple Web API with user authentication
Stars: ✭ 19 (-51.28%)
Mutual labels:  mongoose
mongoose-slug-updater
Schema-based slug plugin for Mongoose - single/compound - unique over collection/group - nested docs/arrays - relative/abs paths - sync on change: create/save/update/updateOne/updateMany/findOneAndUpdate tracked - $set operator - counter/shortId
Stars: ✭ 37 (-5.13%)
Mutual labels:  mongoose
Trellis
A simplified Trello clone built with React, Redux, Node, Express and MongoDB.
Stars: ✭ 116 (+197.44%)
Mutual labels:  mongoose

A Node.js + Mongoose + Jest sample project that demonstrates how to test mongoose operations using Jest with an in-memory database.

This repo was build as an example for my article Testing Node.js + Mongoose with an in-memory database.

Dependencies

What you need to run this project:

  • Node.js

(MongoDB is not required because it'll run in memory, handled by the package mongodb-memory-server).

Try it out

1. Install dependencies

npm install

2. Run tests

npm test

Contribute

Feel free to contribute to this project either by leaving your comments and suggestions in the Issues section or creating a PR. More and diverse test examples are always useful. Make sure to take a look at Jest docs and the existent examples to avoid repeating.

Tools

Main tools used in this project:

Also take a look at mongodb-memory-server-global to download mongod's binary globally and mongodb-memory-server-core if you'll run the test on a server that already has mongod installed.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].