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. 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
  2. This information is impressive; I am inspired with your post writing style & how continuously you describe this topic.
    python training in

    chennai

    ReplyDelete
  3. 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
  4. 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
  5. 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
  6. Thank you for your sharing information..Its very interesting and useful.. awesome article
    Digital Marketing Company in Chennai

    ReplyDelete
  7. 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
  8. It is very useful. I like it. Thanks for posting this information.
    sap training in chennai

    ReplyDelete
  9. 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
  10. This comment has been removed by the author.

    ReplyDelete

  11. Thanks for the informative article. This is one of the best resources I have found in quite some time.Nicely written and great info. I really cannot thank you enough for sharing.

    Carwash in omr

    ReplyDelete
  12. I am really enjoy your blog designs. It’s a very easy which makes it much more pleasant for me to come here and visit more often. Good job!

    Superstars Biography

    ReplyDelete