Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

如何运行这个项目 #35

Open
yyf66 opened this issue Aug 8, 2023 · 2 comments
Open

如何运行这个项目 #35

yyf66 opened this issue Aug 8, 2023 · 2 comments

Comments

@yyf66
Copy link

yyf66 commented Aug 8, 2023

No description provided.

@yyf66
Copy link
Author

yyf66 commented Aug 8, 2023

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
Copy link

syyuan14 commented Jan 9, 2024

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants