Code Monkey home page Code Monkey logo

Comments (3)

nodkz avatar nodkz commented on May 13, 2024 5

It maybe need more time for dowloading binaries. Please try to increase jasmine.DEFAULT_TIMEOUT_INTERVAL = 300000;.

With your tests try to make such import:

const MongodbMemoryServer = require('mongodb-memory-server').default;

from mongodb-memory-server.

EnergeticPixels avatar EnergeticPixels commented on May 13, 2024 2

@nodkz Closes #64.

your suggestion of adding ".default" fixed issue. verified by returning mocha's timeout back to 60000. Remove the .default from the require statement and the fault reappears.

I also had to comment out my MongodbMemServer instance init for dbPath. System kept saying that it could not find my relative path. I was setting a relative path that started reference from my db conn script file. When I got your server to work in my project, I noticed that dbPath was a full qualified drive/path into local AppData.

Here is my final solution for this: checkout feature/saa

Your awesome!
tony

from mongodb-memory-server.

makrandgupta avatar makrandgupta commented on May 13, 2024 2

@nodkz Including this information in the documentation will be really helpful since not everyone is using import statements. I had to dig up this issue to figure out why my tests wont even run.

from mongodb-memory-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.