ts-jest-power-assert
Example jest config to setup ts-jest to work with power-assert
Run test
$ yarn test
The tests should fail and shows a descriptive error message:
Message:
# src/add.spec.ts:11
assert(add_1.add(a, b) === c)
| | | | | |
| | | | | 4
| 5 2 3 false
Object{add:#function#}
[number] c
=> 4
[number] add_1.add(a, b)
=> 5