Hi Mocha Team !
This warning stops my tests on Circle CI V2.0 (Ubuntu 14.04, Nodejs 8.9.3) :
...
yarn test
...
$ eslint .
$ mocha "./src/migrations/index.test.js" --require babel-core/register
Warning: Could not find any test files matching pattern: ./src/migrations/index.test.js
No test files found
error Command failed with exit code 1.
I tried to fix it reading similar issues like #2895 but nothing works.
My package.json :
...
"test-migrations": "mocha \"./src/migrations/index.test.js\" --require babel-core/register",
"test": "yarn run lint && yarn run test-migrations && mocha \"./src/index.test.js\" --require babel-core/register",
...
I also tried to write the path differently like :
mocha src/migrations/index.test.js --require babel-core/registe but it doesn't work
There's not warning and everything works fine on
How could i solve this problem ?
Thanks a lot !
nobody could help during the holidays ? :) @Bamieh @boneskull @markowsiak @Munter ?
Thanks a lot ! that's quite important for us, our CI can't work with this error :/
Hello buddy,
@Aarbel This error is logged when mocha is unable to resolve the file path. Are you sure the src directory is being copied into the CI?
Please replace the test script with ls src/migrations and see what logs.
@Bamieh
ok the problem comes from docker-compose and not mocha.
My volumes aren't mounted with the host files for tests. I created an issue here : https://github.com/docker/compose/issues/5519