Skip to content

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

Notifications You must be signed in to change notification settings

edcsu/Vue_test_project

Repository files navigation

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.

More Information

  1. Vue Test Utils The official unit testing utility library for Vue.js.
  2. Testing Single-File Components with Mocha + webpack
  3. Mocha
  4. Mocha-webpack
  5. Chai
  6. Sinon