Skip to content

Console Output

+ npm test

> mhh-poc@0.1.0 test /var/lib/jenkins/home/jobs/MHH-develop/workspace
> jest --coverage --watchAll=false

PASS test/sum.test.ts
  test sum function
    ✓ should return 15 for sum(10,5) (2 ms)
    ✓ should return 5 for sum(2,3) (1 ms)

----------|---------|----------|---------|---------|-------------------
File      | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
----------|---------|----------|---------|---------|-------------------
All files |     100 |      100 |     100 |     100 |                   
 sum.ts   |     100 |      100 |     100 |     100 |                   
----------|---------|----------|---------|---------|-------------------
Test Suites: 1 passed, 1 total
Tests:       2 passed, 2 total
Snapshots:   0 total
Time:        0.957 s, estimated 3 s
Ran all test suites.