Try this:
import xhr2 from 'xhr2'
// @ts-ignore
global.XMLHttpRequest = xhr2.XMLHttpRequest
EDIT: Oops yeah you probably did this ![]()
Try this:
import xhr2 from 'xhr2'
// @ts-ignore
global.XMLHttpRequest = xhr2.XMLHttpRequest
EDIT: Oops yeah you probably did this ![]()