๐ฉโ๐ป Join our community of thousands of amazing developers!
Welcome to part 2 of a series on how to test a Vue component. Here's the table of contents of the series: Starting out with tests The first test and snapshot testing (you're here) Creating an instance of a component More tests and faking time Jest awesomeness and a skeleton to get started Setting up the world Let's take a further look at tabs.test.js. Near the top of the file you can see this line beforeEach(() => { The function that is passed to beforeEach will be run before each test. It's...