โ˜… Testing a Vue component part 2: the first test and snapshots

1 ยท Freek Van der Herten ยท May 17, 2017, 2:14 p.m.
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...