vue-jest
vue-jest copied to clipboard
Error in the 'using-a-mocked-router' chapter
The function called in the allows authenticated user to edit a post and redirect an unauthenticated user to 404 tests should be async because keyword await is used in the function.
The same error happens in the Testing useRouter and useRoute within setup section.