Closed steklopod closed 1 year ago
I fixed it like it was suggested here by adding:
import { Blob } from 'node:buffer'
import { beforeAll } from 'vitest'
beforeAll(() => {
globalThis.Blob = Blob // use Node.js Blob instead of Jsdom's Blob
})
Maybe it can be added to lib?
Expected result:
Current result:
Tests:
nuxt-vitest
onlyCard is showing, but tests not working
https://github.com/AlexLavoie42/Nuxt-Mapbox/assets/29500153/9fa1910d-7cb1-4812-87be-4cb590a7e15e