see https://github.com/i5ting/ts-junit
yarn
yarn test
Output:
PASS test/sum.test.ts
SumTest
โ adds 1 + 2 to equal 3 (2 ms)
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 1.707 s, estimated 2 s
Ran all test suites.