-
-
Notifications
You must be signed in to change notification settings - Fork 46.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
test: testing-lib #37381
test: testing-lib #37381
Conversation
冲突了 |
这个是为啥要改 |
收到 |
demoTest function |
40e56a2
to
8203e79
Compare
snapshot 应该不变吧 |
恩,我不确定, 主要是这个文件的改动 引起的,帮看下 /tests/shared/demoTest.tsx |
</span> | ||
</label> | ||
<label | ||
class="ant-radio-button-wrapper" |
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.
snapshot 能保持不变么,这样 diff 有点大。
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.
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.
我再找找看有没有格式配置
tests/shared/demoTest.tsx
Outdated
// @ts-ignore | ||
child = child | ||
.toString() | ||
.replace(/ (aria-.*)=".+?"/g, ' $1=""') |
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.
这是干掉 aria- 么?
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.
恩,忽略掉
tests/shared/demoTest.tsx
Outdated
child = child | ||
.toString() | ||
.replace(/ (aria-.*)=".+?"/g, ' $1=""') | ||
.replace(/ id=".+?"/g, ' $1=""'); |
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.
这是做啥?
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.
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.
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.
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.
这个pr还继续么(要不我关了,去做新组件),巨佬 @afc163 我感觉我是不是走偏了
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.
继续啊
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.
继续啊
ok
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.
这个 tip 里是针对 id 不稳定的情况,id 稳定的情况还是希望能打出来了。现在去掉有点一刀切了。
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.
这个 tip 里是针对 id 不稳定的情况,id 稳定的情况还是希望能打出来了。现在去掉有点一刀切了。
dist 里已经把 ENV 固化了,所以它拿到的一定不会是 test env,而是按照 dist 固化出来的 dev
or production
,dist 里有些 test 就直接 ignore 了
node env 报错是对的,因为 node 测试环境不应该有 jsdom。它需要对比的是 序列化 后的 html。这个需要走个分支处理一下。 |
Codecov Report
@@ Coverage Diff @@
## master #37381 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 443 443
Lines 8176 8177 +1
Branches 2403 2403
=========================================
+ Hits 8176 8177 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge