jest-dom jest是一些常见类型的断言,jest-dom添加了一些dom节点的断言,新版本的create app默认安装"@types/react-dom": "^16.9.8", https://react.docschina.org/docs/react-dom.html