Issue with setup files #908
-
Hey everyone 👋🏻 What's going wrong 😔Specifically, I'm trying to use In jest, you just have to put Reproducible Example 🤔FormStore: this is the NPM package I mentioned previously. I think everything in there is pretty standard but here's a quick reference:
Just open the repo, Any Help Is Appreciated 😬I was banging my head against this for a few hours today, so I'm hoping it's just something silly I'm missing (Admittedly, I'm relatively new to testing with jest (have done a bit in cypress, and quite a bit with PyTest) so I'm almost sure it is 😅) Thanks in advance to anyone who takes a look at this! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
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
Huge shoutout to @sheremet-va for the existing solution