📜  使成为(<App > ); const linkElement = screen.getByText( 学习反应 i);期望(链接元素).toBeInTheDocument(); - Javascript代码示例

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

代码示例1
render();
  const linkElement = screen.getByText(/learn react/i);
  expect(linkElement).toBeInTheDocument();