Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test fail after adding this library #23

Closed
steklopod opened this issue May 26, 2023 · 1 comment
Closed

Test fail after adding this library #23

steklopod opened this issue May 26, 2023 · 1 comment

Comments

@steklopod
Copy link

steklopod commented May 26, 2023

Expected result:

all tests pass

Current result:

80 of tests fail


Tests: nuxt-vitest only

Card is showing, but tests not working

2023-05-26.12.25.05.mov
@steklopod
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant