Closed priyeshvadhiya closed 5 years ago
Hello, your issue has been closed because it does not conform to our issue requirements. In order to ensure every issue provides the necessary information for us to investigate, we require the use of the Issue Helper when creating new issues. Thank you!
i am setting up unit test with jest in my vuejs project.
testing with login component and i have tested successful all the props, input, client validation, but when i test with axios request POST then always return catch error
Error: Request failed with status code 404
i am setting up unit test with jest in my vuejs project.
testing with login component and i have tested successful all the props, input, client validation, but when i test with axios request POST then always return catch error
Error: Request failed with status code 404
login.spec.js
my test code
Login.vue
i am trying to lot. how to moke axios by calling method? positive answer appreciate
i want to call function and then call api(inside the function) and get response. wrapper.vm.doSigninNormal()
i have also post on stackOverflow to describe it.