Closed marceloavf closed 4 years ago
I have same issue.
I have cloned a clean repository and the yarn test:unit:file command does not work.
The problem seems to be in the --findRelatedTests
flag
The test runs only if you specify the path to the test file
like:
yarn test:unit:file .\src\components\_base-button.unit.js
runs the test, but
yarn test:unit:file .\src\components\_base-button.vue
not working
I assume this problem is only on windows OS
UPD I finally fixed that problem, I'll make PR as soon as possible
When I change
login.vue
for example, and it goes to git staged,lint-staged
can't find the test next to it, orlint-staged
should be passing the unit test file automatically with login.vue ?Only if I modify the .unit.js test itself to stop the commit with the error, but for that, I also have to change
yarn test:unit:file
toyarn test:unit --passWithNoTests --bail
in lint staged config file.Lint staged debug log
When I run direct in bash: