mach
mach copied to clipboard
Weird node error when testing with Jest
So i'm trying to implement this in a React project and am using Jest to test with. I'm currently getting this error when triggering a fucntion that calls the mach code
/Location.js: Property description must be an object: undefined
My code that is triggering this looks like:
login() {
mach.post({
url: url,
params: {...},
headers: {
'X-CSRF-TOKEN': token
}
}).then(() => location.reload());
}
node 0.10, jest 0.2.2