Challenge: Unit Tests
Practice what we’ve learned about the Jest and Vue testing libraries.
We'll cover the following...
Problem statement
Adding unit tests for components can be a great way to ensure that a component can be safely refactored without breaking its functionality. If something is broken, then tests should fail and prevent broken code from reaching users. Your task is to write unit tests for a Pagination
component.
Challenge
Your project contains a Pagination
component and a test file with the basic setup. Both the component and test files can be found in the src/components/pagination
...