-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何配置并编写react-native的jest单元测试? #9470
Comments
哪个taro版本 |
已经编辑更新taro版本信息 |
@zhiqingchen 加入上述配置后,仍旧报错,有哪里需要修改吗? ···
Test Suites: 1 failed, 1 total babel.config.js: |
啊,原来jest-expo版本必须小于43 |
目前用如下配置可以跑通调用Taro.request的方法单元测试
"jest": "26.4.2", 配置参考了
@zhiqingchen @iChengbo @shinken008 @Saifa-96 是否正确,请指正。 |
@smoothdvd 想问一下是否愿意给 taro rn 的相关接口和组件补充测试用例。 |
@zhiqingchen 可以,不过要等我手上的项目做完(顺带把taro-rn用熟) |
babel-preset-expo预置配置要移到test环境中:
|
这个特性解决了什么问题?
想做react-native的单元测试,但是遇到报错如下:
我的jest.config.js配置如下:
taro版本如下:
这个 API 长什么样?
请问各位有没有一个完整的jest.config.js能借我参考一下,网上没有例子,让单元测试难以执行,希望能help me
The text was updated successfully, but these errors were encountered: