Replies: 2 comments
-
its the same way as you would against a normal manually run binary, the only difference is that you need to get the url / port from please note that MMS only installs the server binary ( instead of |
Beta Was this translation helpful? Give feedback.
-
I have a
|
Beta Was this translation helpful? Give feedback.
-
I want to initialize my mongodb-memory-server with the some collections, indexes, and initial data for testing. I'd like to use the same file full of shell commands I use with my Docker deployment if possible. Many of my tests involve unique indexes and testing for proper responses to duplicate inserts, etc.
I saw the answers to this question - #309, but they did not mention how to programmatically execute mongo commands from a file against the newly created MongoMemoryServer.
Any help will be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions