TypeScript で coverage を計測する
August 20, 2016
TypeScript で Coverage report を計測する
TL;DR
- remap-istanbul を使う
Usage
npm install remap-istanbul
sourcemap: true
Memo
tsc
>npm test
という流れになったため JavaScript としてテストをする形になる-
espower-typescript を使わないようになる
espower-typescript
は tsc の wrapper なので tsc する場合は使えなそう
-
power-assert
が上手く構造を解釈してくれてなさそうespower-typescript
が担っていた役割を別で与える必要がある- TypeScript に依存するなら無駄に babel plugin などは使いたくない
- TODO 考える
Refs
Written by Keisuke Kan who lives and works in Japan building useful things. You should follow him on Twitter