【发布时间】:2020-08-04 11:28:28
【问题描述】:
我的测试出错了:
不变式失败:您不应在
<Router>之外使用<Link>
对此我能做些什么?
483 | state,
484 | }) => {
> 485 | const component = mount(<Testrun {...props} />);
| ^
486 | return component;
487 | };
488 | it('should have an input for the username', function () {
【问题讨论】:
标签: reactjs react-redux jestjs enzyme react-router-dom