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

fetch not available #41

Open
TimDaub opened this issue Jul 20, 2020 · 1 comment · May be fixed by #42
Open

fetch not available #41

TimDaub opened this issue Jul 20, 2020 · 1 comment · May be fixed by #42

Comments

@TimDaub
Copy link

TimDaub commented Jul 20, 2020

related to: lukechilds/browser-env#82

According to fetch spec, it's available under WindowOrWorkerGlobalScope.

related: jsdom/jsdom#1724

@TimDaub
Copy link
Author

TimDaub commented Dec 2, 2020

This is still a problem, e.g. when adding the window module to an ava test setup:

const Window = require('window');
global.window = new Window();

and in package.json

"ava": {
  "require": ["./test/_window.js"]
}

TimDaub added a commit to TimDaub/window that referenced this issue Dec 2, 2020
@TimDaub TimDaub linked a pull request Dec 2, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant