-
Notifications
You must be signed in to change notification settings - Fork 116
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
fix react16 warning, ref https://github.com/ant-design/ant-design-mob… #28
Conversation
ci is broken |
我改成 es6 比较好点 |
@paranoidjk ci 是 coverage 跑不了,报错 在 master 的 8b760e7 改动里已经挂了,对 jest 不熟,搜了半天解决方法,没搞定,就不在这个 pr 里解决 coverage 的问题了 |
我下午来看看ci的问题 |
@paranoidjk ci 的问题看了? |
@silentcloud ci 我fix了,你看一下 |
5ba2edc
to
d1b0304
Compare
@@ -40,7 +40,7 @@ | |||
}, | |||
"jest": { | |||
"collectCoverageFrom": [ | |||
"src/*" | |||
"lib/*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这样改,覆盖率就不是源码了吧,是不是应该自定义 transform 才对 @paranoidjk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
主要是我现在 test 里面就是引用的 lib
你可以试试改成 test 里面 引用 src,并且加上对应的 jest transform
注意 import '../' 是会应用 lib 的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
先按你这样搞吧,后面有时间再换 src 好了
@silentcloud |
ant-design/ant-design-mobile#1118