react-routerのテストのつもりがバリデーションのテストに react-inputs-validationを使ったバリデーションの実装 参考 react-inputs-validation react-inputs-validation Example