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.


18 comments:

  1. I do believe all of the concepts you’ve introduced in your post. They’re very convincing and will definitely work. Nonetheless, the posts are too short for novices. May you please extend them a bit from subsequent time? Thank you for the post.
    Digital Marketing Company in Chennai
    SEO Company in Chennai

    ReplyDelete
  2. Just read your website. Good one. I liked it. Keep going. you are a best writer your site is very useful and informative

    thanks for sharing!
    Eczema Treatment

    ReplyDelete
  3. This information is impressive; I am inspired with your post writing style & how continuously you describe this topic.
    python training in

    chennai

    ReplyDelete
  4. It was very nice article and it is very useful to Manual Testing learners.We also provide Selenium Training software online training.

    Selenium Training in Chennai

    ReplyDelete
  5. These ways are very simple and very much useful, as a beginner level these helped me a lot thanks fore sharing these kinds of useful and knowledgeable information.

    Cloud Computing Training in chennai

    ReplyDelete
  6. Thank you for this great article which conveyed a good information..very informative & different one....
    I would like to share the information

    Python Training in Chennai

    ReplyDelete
  7. Thank you for your sharing information..Its very interesting and useful.. awesome article
    Digital Marketing Company in Chennai

    ReplyDelete
  8. I liked it. Keep going. you are a best writer your site is very useful and informative

    thank you sharing!!!

    java training in chennai.

    ReplyDelete
  9. It is very useful. I like it. Thanks for posting this information.
    sap training in chennai

    ReplyDelete
  10. hi thank you so much to tell us the most mattering much contents..... im gonna share this to my friends also......



    Transportation Consulting Chennai
    Civil-Engineering-consultants
    Office Interiors in Chennai
    Rainwater Harvesting Chennai

    ReplyDelete
  11. This blog is having the general information.Got a creative work and this is very different one.We have to develop our creativity mind.This blog helps for this. Thank you for this blog.This is very interesting and useful.

    Selenium Training in Chennai

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.
    Well, got a good knowledge.


    Seo Company in India
    Digital Marketing company in India
    Digital Marketing company in Chennai

    ReplyDelete