K
K
Konstantin Cherkashin2021-01-14 13:57:02
typescript
Konstantin Cherkashin, 2021-01-14 13:57:02

When running jest tests, it shows full coverage of the project, although only 4 files are covered, what could be the problem?

When you run the command npm run test:coveragein the results table in the all-files column, it shows only those files that are covered by tests. When I started testing a component that has an api call, files immediately appeared in the table in which I make calls and thunks, I assume that this is due to the fact that I imported them into the file being tested. The question is how to make the table show the full coverage of the project with tests?600023647d8ad005381024.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WbICHA, 2021-01-14
@rim1sta

https://jest-bot.github.io/jest/docs/configuration...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question