📌  相关文章
📜  enzye 检查它是否呈现 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:59.643000             🧑  作者: Mango

代码示例1
describe('when x', () => {
  it('check if child renders', () => {
    const wrapper = shallow();
    expect(wrapper.find(ChildComponentName).length).toEqual(1);
  });
});