anacronw/js-fixtures

XMLHttpRequest not found

Opened this issue · 0 comments

I am running a node test that is loading some fixtures. I have version 1.5.3 of js-fixtures. Version 3.6.0 of node.

I have a problem running npm test, the code gets to loadFixtureIntoCache on line 108 and then, 2 lines later instantiates a new instance of XMLHttpRequest - var request = new XMLHttpRequest();
This line fails with:
ReferenceError: XMLHttpRequest is not defined
at loadFixtureIntoCache (node_modules/js-fixtures/fixtures.js:110:25)

I have looked and searched everything I can think of. I use PHPStorm as my IDE and it can locate XMLHttpRequest just fine if I try to link from that reference on line 110.
I do suspect a setting somewhere. Help would be appreciated.