如题,在Taro中如何像React那样,用toMatchSnapshot()做快照测试,示例如下:
import renderer from 'react-test-renderer'
const component = renderer.create(<CustomerListPage store={mockStore} history={{}} />)
expect(component.toJSON()).toMatchSnapshot()
同问,建议出个说明文档
可以参考一下 taro-ui
Hello~
您的问题楼上已经有了确切的回答,如果没有更多的问题这个 issue 将在 15 天后被自动关闭。
如果您在这 15 天中更新更多信息自动关闭的流程会自动取消,如有其他问题也可以发起新的 Issue。
Good luck and happy coding~