Jest
コマンド
$ npm run test
--watch
--watchAll
--coverage
↑npmのscriptに対するオプションは --
で渡す
ex. $ npm run test -- --watch
一つのspecのみを実行する方法
設定
<rootDir>
という文字列そのものがJestのエイリアスなんやな

webpackなどで絶対パスを指定しているときは moduleNameMapper
などで設定すると良い
実行順序
beforeAll
beforeEach
it
afterEach
afterAll
watchする方法
いったんAPIを一望したい
v27
参考
ざっくり概要
関数やクラスのモックなども
概要
tdd, テスト前後の処理、外部処理、非同期、モックなどなど