Skip to content
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

Merged
merged 5 commits into from
Jun 27, 2017

Conversation

silentcloud
Copy link
Member

@silentcloud silentcloud commented Jun 14, 2017

@paranoidjk
Copy link
Member

ci is broken

@silentcloud
Copy link
Member Author

我改成 es6 比较好点

@silentcloud
Copy link
Member Author

@paranoidjk ci 是 coverage 跑不了,报错

在 master 的 8b760e7 改动里已经挂了,对 jest 不熟,搜了半天解决方法,没搞定,就不在这个 pr 里解决 coverage 的问题了

@paranoidjk
Copy link
Member

我下午来看看ci的问题

@paranoidjk paranoidjk self-assigned this Jun 16, 2017
@silentcloud
Copy link
Member Author

@paranoidjk ci 的问题看了?

@paranoidjk
Copy link
Member

@silentcloud ci 我fix了,你看一下

@paranoidjk paranoidjk force-pushed the fix-react16-waring branch from 5ba2edc to d1b0304 Compare June 26, 2017 05:49
@@ -40,7 +40,7 @@
},
"jest": {
"collectCoverageFrom": [
"src/*"
"lib/*"
Copy link
Member Author

@silentcloud silentcloud Jun 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这样改,覆盖率就不是源码了吧,是不是应该自定义 transform 才对 @paranoidjk

Copy link
Member

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 的

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

先按你这样搞吧,后面有时间再换 src 好了

@paranoidjk paranoidjk merged commit 8b78e48 into master Jun 27, 2017
@paranoidjk paranoidjk deleted the fix-react16-waring branch June 27, 2017 07:44
@paranoidjk
Copy link
Member

@silentcloud rmc-date-picker@5.3.1

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

Successfully merging this pull request may close these issues.

3 participants