via Vue Testing Handbook https://lmiller1990.github.io/vue-testing-handbook/
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
npm install
npm run serve
npm run build
npm run test
npm run lint
npm run test:unit