To mock a method from your Vue instance, you can have access using the vm variable of your Vue class. A simple way to mock the API is to use Jest Manual ...
確定! 回上一頁