Usage of parse-mock-db library

Does anyone have experience with parse-mockdb?

I need to make unit tests, however I don’t know how to test queries without actually connecting to the server… I am using the JavaScript SDK.

Thank you!

May be if you unit test your code (not integration test) you just need to mock ( with jest for example ) the Parse Object Query/Objects :smiley:

If you need to start a full server for integration testing, for my part I just use some real parse server per test file, with an In Memory MongoDB

Here an example on one of my repos, I currently work on a performance enhancement but I think it can be a start point for you :

1 Like