درس قبلی
Mocking Axios Calls

Mocking Axios Calls

Mocking Axios Calls

قسمت 8
درس بعدی

درباره این درس

How do we handle Vue components that make AJAX requests with Axios? Well, there are a number of options. We could set up a fake Sinon.JS server, or we could replace the axios dependency entirely with the test double library. A third option, which we'll review in this episode, is to use Moxios, a first-party library for mocking Axios requests. View the source code for this episode on GitHub.
دیدگاه های کاربران

× در حال پاسخ به: