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.