gBenkyous / inTime

3 stars 0 forks source link

クライアント側 - Jest(テストツール)の導入 #61

Open gonzaresu-sengoku opened 11 months ago

watabusi commented 11 months ago

資料

https://github.com/gBenkyous/wiki/blob/main/inTime/ALL/%E5%9F%BA%E7%A4%8E%E5%AE%9A%E7%BE%A9/%E3%83%86%E3%82%B9%E3%83%88%E5%86%85%E5%AE%B9/%E5%8D%98%E4%BD%93%E3%83%86%E3%82%B9%E3%83%88%E8%B3%87%E6%96%99(ts).md

doranko commented 10 months ago

テスト対象クラスにテスト対象関数を1つしか書けない

doranko commented 10 months ago

commonJS, ESModule それぞれの import, export について調べるのがよいかも?

watabusi commented 9 months ago

ESModuleの形式に対応するよう調整 jest.config.js生成と編集(npx ts-jest config:init) 直下に配置したのでtsconfig.jsonのinclude追加(直下でないとエラーになった)