An open API service indexing awesome lists of open source software.

https://github.com/lenvonsam/vue-jest-test

An example of unit and integration testing of a Vue cli project with Jest as a test tool
https://github.com/lenvonsam/vue-jest-test

e2e-tests jest-test-doc jest-tests unit-tests vue-cli-jest-test

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# vue-jest

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

## Build Setup

``` bash
# 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](https://github.com/lenvonsam/vue-jest-test/wiki/*-Vue-jest-test-%E5%BC%95%E8%A8%80) and [docs for test report](https://juejin.im/post/5affc8556fb9a07aa6320833).