Consider using the new @vue/cli. There's a lot of outdated packages here and this repository was only a proof of concept to get coverage working properly with vue files.
At the end, the best approach is still separate your bussiness in a plain javascript files with proper patterns.
Useful resources:
- https://sourcemaking.com/
- https://refactoring.guru/
- https://12factor.net/
- https://en.wikipedia.org/wiki/SOLID
- https://blog.cleancoder.com/uncle-bob/2016/03/19/GivingUpOnTDD.html
To run project in development mode
npm start
To build repository to production. You'll see a "dist" folder.
npm build
Runs tests.
npm test
You can pass more options if you want, i.e
npm test -- --watch
Currently not working.
npm coverage
- Link to any article about "test folder vs file.spec on same folder"