Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
88
rated 0 times [  95] [ 7]  / answers: 1 / hits: 23545  / 6 Years ago, sun, april 15, 2018, 12:00:00

I ran my tests and this is what I received:



---------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
---------------|----------|----------|----------|----------|-------------------|
All files | 100 | 0 | 100 | 100 | |
Search | 100 | 100 | 100 | 100 | |
index.js | 100 | 100 | 100 | 100 | |
SearchResults | 100 | 0 | 100 | 100 | |
index.js | 100 | 0 | 100 | 100 | 4 |
---------------|----------|----------|----------|----------|-------------------|
Test Suites: 2 passed, 2 total
Tests: 5 passed, 5 total
Snapshots: 1 passed, 1 total
Time: 4.678s

I've changed something and now I have 0% on Branch column but I don't know what it means in order to improve it.


More From » reactjs

 Answers
5

Conditional statements create branches of code which may not be executed (e.g. if/else). This metric tells you how many of your branches have been executed.


[#54659] Thursday, April 12, 2018, 6 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aileent

Total Points: 556
Total Questions: 107
Total Answers: 101

Location: Croatia
Member since Fri, Sep 11, 2020
4 Years ago
;