在使用Jest运行测试套件时,我遇到了警告,这些警告要求我更新包:
npm WARN deprecated jest-dom@2.1.1: jest-dom has moved to @testing-library/jest-dom.Please uninstall jest-dom and install @testing-library/jest-dom
在react-18.0.0版本的应用程序中,我正在为index.js文件编写测试用例,我得到了以下错误TypeError: Cannot set property 'usingClientEntryPoint10 | <React.StrictMode>import React from "react";