Giter VIP home page Giter VIP logo

Comments (6)

powilliam avatar powilliam commented on September 3, 2024 2

That's why i'm using MongoDB Memory Server. It uses the latest mongod binary located onnode_modules/.cache/mongodb-binaries to setup a MongoDB memory database. jest-mongodb uses it under the hood. By this way we don't have to setup a real database.

from twitch.

EduardoAraujoB avatar EduardoAraujoB commented on September 3, 2024 1

Create a mock for the database is a great option to test it

from twitch.

HenriqueDerosa avatar HenriqueDerosa commented on September 3, 2024

Is it worth to use a testing database version to do real tests for database operations?
Or is it enough to test with mock. If it is database operations, we might need a database, right? 🤷🏻‍♂️

from twitch.

EduardoAraujoB avatar EduardoAraujoB commented on September 3, 2024

Maybe define a SQLite database for tests is a great option, but we will have problems beacuse the test for database operations will be assyncronous

from twitch.

HenriqueDerosa avatar HenriqueDerosa commented on September 3, 2024

To test, we could just create a local database with Mongo Article: setup a local MongoDB Connection

from twitch.

powilliam avatar powilliam commented on September 3, 2024

Closing due to #26

from twitch.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.