Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the need for live MongoDB for test #1153

Merged
merged 2 commits into from
Mar 26, 2022

Conversation

haraldkubota
Copy link
Contributor

I remove the need for a running MongoDB when doing "npm test" by using a in-memory-instance of MongoDB when tests run (which use MongoDB). E.g. test/model.js does not need MongoDB.

Tested by running it via GitHub and GitLab CI/CD runners and at my local PC.

@sahat sahat merged commit b6ceaa3 into sahat:master Mar 26, 2022
@YasharF
Copy link
Collaborator

YasharF commented Jul 24, 2023

Reverting. mongodb-memory-server has recurring compatibility issues that causes the tests not to run without a failure response. It looks like because it depends on 3rd party binaries that may or may not be available, and once available it may take many weeks before they get added to a mongodb-memory-server release.

Ref:
typegoose/mongodb-memory-server#732
typegoose/mongodb-memory-server#772
typegoose/mongodb-memory-server#754
typegoose/mongodb-memory-server#632

@YasharF
Copy link
Collaborator

YasharF commented Jul 24, 2023

Reverted by 12fa2a0

@YasharF
Copy link
Collaborator

YasharF commented Jul 25, 2023

Restored this commit with ce6d8e4 ; we need it for CI, and will do a MongoDB version override to load a newer binary version for the memory server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants