Description
What problem does this feature solve?
There are many advantages to having test files live alongside your source files instead of placing all test files in a separate folder. When creating a new Vue project via the CLI, it would be fantastic to be able to choose placing all unit tests inside of a separate "tests/unit" folder OR place unit test files alongside source in "src/**/*.spec.js".
The "test" command in the package.json that is generated can be easily tweaked to make this work:
"test": "vue-cli-service test 'src/**/*.spec.js'"
This allows for a project structure like so:
./src
./src/components
./src/components/my-component.vue
./src/components/my-component.spec.js
What does the proposed API look like?
When running vue create
, I'd imagine a question asking where you'd like your unit tests to live. Either a separate test folder, or alongside source.
Thanks for all the amazing work!