Skip to content

We'll cover setting up a test runner, using Vue Test Utilities, mocking and stubbing common dependencies like Vue Router and Axios, and testing Vuex

Notifications You must be signed in to change notification settings

ishifoev/vue-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing Vue

Want to get started with unit testing in Vue? Here's pretty much everything you need. We'll cover setting up a test runner, using Vue Test Utilities, mocking and stubbing common dependencies like Vue Router and Axios, and testing Vuex both within components and in isolation. Let's get testing.

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

About

We'll cover setting up a test runner, using Vue Test Utilities, mocking and stubbing common dependencies like Vue Router and Axios, and testing Vuex

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published