vue-testing-handbook-examples

via Vue Testing Handbook https://lmiller1990.github.io/vue-testing-handbook/

Create new project

vue create vue-testing-handbook-examples
  • Please pick a preset: Manually select features
  • Check the features needed for your project: Babel, Router, Vuex, CSS Pre-processors, Linter, Unit
  • Use history mode for router? Yes
  • Pick a CSS pre-processor: Less
  • Pick a linter / formatter config: Airbnb
  • Pick additional lint features: Lint on save
  • Pick a unit testing solution: Jest
  • Where do you prefer placing config for Babel, PostCSS, ESLint, etc.? In dedicated config files
  • Save this as a preset for future projects? (y/N) No

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Run your unit tests

npm run test:unit