Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| |
| en:modul:m324_aws:topics:10 [2025/10/15 14:14] – angelegt dgaravaldi | en:modul:m324_aws:topics:10 [2025/10/18 14:29] (aktuell) – dgaravaldi |
|---|
| \\ | \\ |
| ==== Code coverage criteria in Jest ==== | ==== Code coverage criteria in Jest ==== |
| - ''Statements'' represent instructions that have been executed at least once during the unit tests. For example, we can have a line that contains two statements: | * ''Statements'' represent instructions that have been executed at least once during the unit tests. For example, we can have a line that contains two statements: |
| |
| <code> | <code> |
| </code> | </code> |
| |
| This contains a variable declaration statement and a statement that executes the log function that belongs to the console object. | * This contains a variable declaration statement and a statement that executes the log function that belongs to the console object. |
| | * ''Branches'' represent if statements which conditions have been fulfilled at least once during the unit tests. |
| - ''Branches'' represent if statements which conditions have been fulfilled at least once during the unit tests. | * ''Functions'' represent functions that have been called at least once during the unit tests. |
| - ''Functions'' represent functions that have been called at least once during the unit tests. | * ''Lines'' represent code lines that have executed at least once during the unit tests. |
| - ''Lines'' represent code lines that have executed at least once during the unit tests. | |
| |
| \\ | \\ |