Reactソフトウェアテスト(Hooks+ReduxToolKit時代のモダンテスト手法)
[React18対応] React Testing Library + JESTを使った最新ソフトウェアテスト手法を解説。Redux ToolKitのIntegration Testや最新API Mock手法を解説。
Created by Kazu T+
What you'll learn
- React Testing Library+JEST を使ったReactテスト手法
- React Hooksコンポーネントのテスト
- API モック手法 (Mock Server Worker Library)
- Redux ToolKit での統合テスト手法
Requirements
- React HooksとRedux ToolKitの基礎知識
- Mac OS
Description
2018年にリリースされたReact Testing Libraryは、よりユーザー挙動に近いテストを実行できるツールとしてReactも公式に採用を推奨しています。また、従来のEnzymeよりReact Hooksとの相性がよく、React Testing Libraryの人気が急激に上がっています。Hooks 時代の必須テストスキルに乗り遅れないために、本コースでReact Testing Libraryの使い方を解説していきます。
コース内容
1. Rendering テスト
2. userEventによるユーザー動作シミュレーションとテスト(useState)
3. useEffect テスト
4. API Mocking (Mock Server Worker Library) 手法
5. [Redux ToolKit] reducer/ExtraReducer テスト
6. [Redux ToolKit Integration Test] Redux / AsyncThunk 非同期テスト
7. [Redux ToolKit Integration Test] AsyncThunk + Mock API 非同期 + API Mock テスト
8. Testing Custom Hooks
Who this course is for:
- React のソフトウェアテスト手法に興味のある方
Instructor
React, Rust, Golang
-現役エンジニア(大手外資系企業)
-Web application , Machine learning ソフトウェア開発経験10年
-旧帝国大 修士課程卒 (理論物理学)
-科学技術全般に強い興味があり、最近はWeb開発の先端技術と量子コンピューティングに注力