window icon indicating copy to clipboard operation
window copied to clipboard

fetch not available

Open TimDaub opened this issue 5 years ago • 1 comments

related to: https://github.com/lukechilds/browser-env/issues/82

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

related: https://github.com/jsdom/jsdom/issues/1724

TimDaub avatar Jul 20 '20 14:07 TimDaub

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 avatar Dec 02 '20 15:12 TimDaub