How to Mock an AXIOS call with Jest in vue tests utils
In this post, we will see how to mock an Axios call with Jest in vue-test-utils library. For this article, let’s create a Posts.vue component which will call the JSONPlaceholder’s /posts API. The /posts API will return an array of objects. Each object in the array is a post with id, title and body. Here … Read more