Closed
Description
Using vue-jest within a project which is not using typescript / tsconfig.json
leads to randomly appearing warning inside my #log:
> jest ./src/test/js
PASS src/test/js/ComponentA.test.js
[vue-jest]: Not found tsconfig.json.
...
I'm not able to reproduce it. However, I observed that this is appearing if running my testsuite for the first time. Running it again does not show this warning.
First run:
> jest --coverage ./src/test/js
PASS src/test/js/ComponentA.test.js
[vue-jest]: Not found tsconfig.json.
[vue-jest]: Not found tsconfig.json.
[vue-jest]: Not found tsconfig.json.
[vue-jest]: Not found tsconfig.json.
[vue-jest]: Not found tsconfig.json.
PASS src/test/js/ComponentB.test.js (5.661 s)
PASS src/test/js/ComponentC.test.js(5.781 s)
[vue-jest]: Not found tsconfig.json.
[vue-jest]: Not found tsconfig.json.
[vue-jest]: Not found tsconfig.json.
[vue-jest]: Not found tsconfig.json.
[vue-jest]: Not found tsconfig.json.
[vue-jest]: Not found tsconfig.json.
[vue-jest]: Not found tsconfig.json.
Second run:
> jest --coverage ./src/test/js
PASS src/test/js/ComponentA.test.js
PASS src/test/js/ComponentB.test.js (5.661 s)
PASS src/test/js/ComponentC.test.js(5.781 s)
The following line is causing the problem which has been introduced with #471
vue-jest/packages/vue3-jest/lib/utils.js
Line 79 in 6d1eec5
Is this a problem with my config or should the warning not be displayed?