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

"window is not defined" error when writing tests #246

Open
hems opened this issue Nov 2, 2023 · 0 comments
Open

"window is not defined" error when writing tests #246

hems opened this issue Nov 2, 2023 · 0 comments

Comments

@hems
Copy link

hems commented Nov 2, 2023

I'm writing a test to check an API endpoint and unfortunately i'm getting that error when trying to use qr-scanner on the backend.

Here is an example piece of code that i'm running inside of a jest test:

    const qrCodeText = await QrScanner.scanImage(res.body);
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