vue-jest icon indicating copy to clipboard operation
vue-jest copied to clipboard

Error in the 'using-a-mocked-router' chapter

Open CrayonChimp opened this issue 3 years ago • 1 comments

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.

CrayonChimp avatar Jan 01 '22 19:01 CrayonChimp

The same error happens in the Testing useRouter and useRoute within setup section.

CrayonChimp avatar Jan 01 '22 20:01 CrayonChimp