摘要:
We have the happy path covered for our post editor component, but what happens if there’s an error in saving the user’s information? We should probabl 阅读全文
posted @ 2020-05-02 21:48
Zhentiw
阅读(228)
评论(0)
推荐(0)
摘要:
A really important aspect of TDD is the refactor phase. A critical piece to making your tests easier to maintain is using code structure and values to 阅读全文
posted @ 2020-05-02 19:35
Zhentiw
阅读(276)
评论(0)
推荐(0)
摘要:
Just make sure the date is in a range then it is fine import React from 'react' import {render, fireEvent, waitFor} from '@testing-library/react' impo 阅读全文
posted @ 2020-05-02 19:28
Zhentiw
阅读(155)
评论(0)
推荐(0)
摘要:
Once the data has been saved on the server, we’ll want to redirect the user to the home screen with react-router’s <Redirect /> component. Let’s go ah 阅读全文
posted @ 2020-05-02 19:19
Zhentiw
阅读(681)
评论(0)
推荐(1)

浙公网安备 33010602011771号