react-testing-library why is toBeInTheDocument() not a function

后端 未结 5 1104
别跟我提以往
别跟我提以往 2021-02-11 15:35

Here is my code for a tooltip that toggles the CSS property display: block on MouseOver and on Mouse Out display: none.

 it(\'should sho         


        
5条回答
  •  南笙
    南笙 (楼主)
    2021-02-11 15:51

    toBeInTheDocument is not part of RTL. You need to install jest-dom to enable it.

提交回复
热议问题