Comments (6)
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.
Create a mock for the database is a great option to test it
from twitch.
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.
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.
To test, we could just create a local database with Mongo Article: setup a local MongoDB Connection
from twitch.
Closing due to #26
from twitch.
Related Issues (12)
- Organize the project structure HOT 1
- Return viewers sorted by points HOT 1
- Store points in a database HOT 12
- Fix undefined on message when displaying the PORT number HOT 2
- Replace eslint with tslint HOT 2
- Standardization of commits
- Add feature to remove bots from viewers list
- Add a ParticipantEntity and a ParticipantRepository. HOT 1
- Deploy problem "server ready of undefined" HOT 1
- Fix application options on Readme HOT 5
- After finishing the stream the points continue to count HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitch.