bencodezen / vue-enterprise-boilerplate

An ever-evolving, very opinionated architecture and dev environment for new Vue SPA projects using Vue CLI.
7.78k stars 1.32k forks source link

Why use so many parameters when creating command 'unit'? #74

Closed elevatebart closed 5 years ago

elevatebart commented 5 years ago

The best way to run jest unit tests is yarn unit. It will run vue-cli-service test:unit \\.unit\\.js$. Why filter again on \\.unit\\.js$? The jest.config.js testMatch param seems to be the same.

What am I missing?

If we remove the filter here, it allows users to do the classic

yarn unit button

very useful to run a subset of the tests instead of the whole suite.

Thank you for your answers.

chrisvfritz commented 5 years ago

I believe this was necessary with a previous version of Vue CLI, but it looks like we've since fixed it, so the \\.unit\\.js$ is now removed. 🙂