lenvonsam / vue-jest-test

An example of unit and integration testing of a Vue cli project with Jest as a test tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-jest

Use the jest test framework to unit and integrate test cases for the vuejs project.

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run all tests
npm test

For a detailed explanation on how things work, check out the guide and docs for test report.

About

An example of unit and integration testing of a Vue cli project with Jest as a test tool


Languages

Language:JavaScript 94.9%Language:Vue 4.2%Language:HTML 1.0%