Skip to content

Weird node error when testing with Jest #68

@blainekasten

Description

@blainekasten

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions