Skip to content

Issue with setup files #908

Answered by MykalMachon
MykalMachon asked this question in Q&A
Discussion options

You must be logged in to vote

Solution 🎉

I found a solution! A few minutes after writing this up, I found this discussion question asking something similar

Basically all I had to do was

// vitest-setup.ts
import indexeddb from 'fake-indexeddb';

globalThis.indexedDB = indexeddb;

Huge shoutout to @sheremet-va for the existing solution

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MykalMachon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant