-
Notifications
You must be signed in to change notification settings - Fork 79
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
基于 Taro 开发的三端组件,UT怎么做同构 #58
Comments
目前未尝试过 |
你们项目后期有没有规划过UT这块呢?我们现在业务场景也是用的taro三端同构,但是现在在做UT这块卡壳了 不知道怎么处理才是最适合的 |
+1,any news? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
现在基于 taro 平台解析以及其他的多端能力, 写了一个组件库,组件库能适配三端,但是 UT 不知道怎么写适合 ,主要有两个问题
用的 jest + react-testing-library , 主要 RN 端需要用 @testing-library/react-native , 在小程序/h5端 又需要 用 @testing-library/react
组件库本身是依赖 Taro的平台解析文件的能力, 将端的差异处理拆解到不同的文件,而 jest 本身也没有这块按平台解析的的能力
现在想求教你们多端同构的项目是怎么写UT的啊?
The text was updated successfully, but these errors were encountered: