Giter VIP home page Giter VIP logo

Comments (4)

dumbmatter avatar dumbmatter commented on May 31, 2024 1

I added explicit instructions for Dexie in the README: 65fe0f7

from fakeindexeddb.

yankeeinlondon avatar yankeeinlondon commented on May 31, 2024

I'm still digging into how to explicitly set the global scope in Mocha but I see that your example config is using Jest which I know is the coolest flavor these days but my test library is huge and so I don't have the luxury of switch at the moment. Anyway, I do think that a config example for Mocha/Chai would be a good addition considering that this is still a VERY common tooling.

from fakeindexeddb.

yankeeinlondon avatar yankeeinlondon commented on May 31, 2024

It appears that buried deep in the issues of Dexie there appears a clear means to do this:

In some more digging this SO post is probably the best summary:

from fakeindexeddb.

dumbmatter avatar dumbmatter commented on May 31, 2024

#38 shows a couple ways to use it with Dexie. Importing fake-indexeddb/auto is the easiest. If that's not working for you, can you link to an example?

As for how to explicitly set up the global scope in Mocha... I guess it could go in the README. I was somewhat ambivalent about adding it for Jest. But I don't really want to add it for all the testing libraries in the world, especially since it's probably better for people to be looking for this info in their testing library's documentation.

from fakeindexeddb.

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.