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
- Host: GitHub
- URL: https://github.com/lenvonsam/vue-jest-test
- Owner: lenvonsam
- Created: 2018-05-08T09:01:45.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-25T13:52:14.000Z (about 8 years ago)
- Last Synced: 2025-07-18T01:16:56.403Z (11 months ago)
- Topics: e2e-tests, jest-test-doc, jest-tests, unit-tests, vue-cli-jest-test
- Language: JavaScript
- Size: 497 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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).