menu

Monday, April 3, 2017

Resolving fetchMock issues when testing isomorphic-fetch [Reactjs]

Hi peeps,

This is a quickie, and the content is totally reactjs.
If you are using fetchMock to simulate your API requests and you happend to use isomorphic-fetch for better support of fetch in browsers, you might have noticed that how fetchMock doesn't work. The solution is that you have to change the isomorphic-fetch import as below

import fetch from isomorphic-fetch

should be changed to

import isomorphic-fetch

This is highlighted in the fetchMock documentation.


13 comments:

  1. A nice article here with some useful tips for those who are not used-to comment that frequently. Thanks for this helpful information I agree with all points you have given to us. I will follow all of them.
    Office Interior Designers in Coimbatore
    Office Interior Designers in Bangalore
    Office Interior Designers in Hyderabad

    ReplyDelete
  2. I am inspired with your post writing style & how continuously you describe this topic.
    Web Design Company in Chennai

    ReplyDelete

  3. i really like this blog.And i got more information's from this blog.thanks for sharing!!!!


    SEO Company in India

    ReplyDelete
  4. A nice article here with some useful tips for those who are not used-to comment that frequently. Thanks for this helpful information I agree with all points you have given to us. I will follow all of them.
    Digital Marketing Company in Chennai

    ReplyDelete
  5. Its a nice article and will be useful for us to studying .


    Java Training in Chennai

    ReplyDelete
  6. I have really enjoyed reading your blog posts. This information is impressive. I am inspired with

    your post.. I hope you post again soon.your post is very helpful for me.
    Java Training in Chennai

    ReplyDelete
  7. It's like you read my mind! You seem to know a lot about this, like you wrote the book in it or something. I think that you can do with some pics to drive the message home a little bit, but instead of that, this is fantastic blog. A great read. I will definitely be back.
    Psoriasis Treatment
    Pimple Treatment
    Psoriasis Shampoo

    ReplyDelete
  8. Thank you for your sharing.. I got information in this blog.

    ReplyDelete
  9. Great post!I am actually getting ready to across this information,i am very happy to this commands.Also great blog here with all of the valuable information you have.Well done,its a great knowledge.
    SAP MM Training in Chennai

    ReplyDelete

  10. really it was an more interesting blog to read keep on updating you are focused on your topic without any deviation.really it looks good to read and inspiring to all those who has visited your blog.
    DOTNET TRAINING IN CHENNAI
    JAVA TRAINING IN CHENNAI
    SAS TRAINING IN CHENNAI

    ReplyDelete
  11. I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly

    SEO Company in India
    SEO Company in chennai

    ReplyDelete
  12. i really like this blog.And i got more information's from this blog.thanks for sharing!!!! Best Interior Designers in Chennai

    ReplyDelete