Skip to content

Not found tsconfig.json warning in log #490

Closed
@Theiaz

Description

@Theiaz

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

warn(`Not found tsconfig.json.`)

Is this a problem with my config or should the warning not be displayed?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions