Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我习惯于使用 react-testing-library 编写测试,并且我总是可以将模拟数据传递给组件以进行测试。假设我正在使用 graphql 数据渲染组件,我的测试是否也应该包含这些组件?(例如来自 graphql 等的博客文章)