[Vuejs]-Testing async function with Vue Jest doesnt work

0👍

Your method getAll() should be a promise, because "axios" is and returns a promise.

So.. if getAll is a promise, you can call it next with .then().catch()..

Remember return in your promise the resolve() when everyting the tasks ends, or rejection() if your promise ends with errors.

Leave a comment