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

https://github.com/edcsu/vue_test_project

This is a sample test project using mocha+chai+sinon to test mixins
https://github.com/edcsu/vue_test_project

mocha mocha-chai-sinon mocha-webpack unit-test unit-testing vue-cli vue-test-utils vuejs2

Last synced: about 2 months ago
JSON representation

This is a sample test project using mocha+chai+sinon to test mixins

Awesome Lists containing this project

README

          

# test_project v0.1.0

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Run your unit tests
```
npm run test:unit
```
mocha-webpack is a wrapper around webpack + Mocha, but with a more streamlined interface and watch mode.
The benefits of this setup is that we can get complete SFC support via webpack + vue-loader.

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

### More Information
1. [Vue Test Utils](https://vue-test-utils.vuejs.org/) The official unit testing utility library for Vue.js.
2. [Testing Single-File Components with Mocha + webpack](https://vue-test-utils.vuejs.org/guides/testing-single-file-components-with-mocha-webpack.html)
3. [Mocha](https://mochajs.org/)
4. [Mocha-webpack](http://zinserjan.github.io/mocha-webpack/)
5. [Chai](https://www.chaijs.com/)
6. [Sinon](https://sinonjs.org/)