NervJS / taro-test-utils

多端单测工具
MIT License
9 stars 4 forks source link

如何运行这个项目 #35

Open yyf66 opened 11 months ago

yyf66 commented 11 months ago

1 npm i @tarojs/test-utils-react --save 2 npm i -D jest 3 安装 jest v29 之后需要手动安装jsdom 环境 (npm install -D jest-environment-jsdom) 4 taro-test-utils-next\tests\react> 修改jest.config.js image 5 运行提示安装babel (npm i babel-preset-taro) 6成功运行 image

syyuan14 commented 6 months ago

并且这个项目引入了react-dom/client ,低版本的react-dom还没法用