Examples on how to test Vue with Jest, based on the presentation at VueConf17
Switch branches/tags
Nothing to show
Clone or download


Vue Testing with Jest

Description: This Repo follows my talk from the first Vue Conf in 2017. You'll find the Slides and all code examples in here. I tried to split them up in seperate files so they are quite followable.

The talk is online and can be watched here: https://www.youtube.com/watch?v=pqp0PsPBO_0

Run Specs Locally

In case you want to see all the specs running, clone or download the repository and open it in your terminal.

$ yarn install

will install all dependencies for you. After that you can run all specs like so:

$ yarn jest

Be sure to go through the comments in the code examples as they will explain what is going on in all the special places :)

Getting started

Getting started with Jest is quite easy, so please check out the code snippets. Keep in mind though, the aim of this talk was an introductory one to testing and Jest it self and how to get started on your project.

If you have further questions or want to know about more advanced tasks with Jest, please ping me on Twitter @Codebryo or open an Issue and I'll try to come back on your questions.

Best, Roman