-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat: add preact-snapshot-test. #1306
Conversation
@paranoidjk, thanks for your PR! By analyzing the history of the files in this pull request, we identified @yiminghe, @pingan1927 and @silentcloud to be potential reviewers. |
tests/shared/demoTest.js
Outdated
@@ -23,6 +41,14 @@ export function webDemoTest(component, options = {}) { | |||
}); | |||
} | |||
|
|||
export function webDemoTest(...args) { | |||
if (process.env.TEST_ENV === 'preact') { |
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.
这里和 npm scripts 不一致。
"test:web-preact": "TEST_ENV=PREACT jest --config .jest.preact.json",
个人觉得应该像 NODE_ENV 一样采用小写。
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,大小写倒不限制,主要是手滑两边没统一...
3353027
to
062032a
Compare
Codecov Report
@@ Coverage Diff @@
## master #1306 +/- ##
=======================================
Coverage 63.12% 63.12%
=======================================
Files 100 100
Lines 2099 2099
Branches 654 654
=======================================
Hits 1325 1325
Misses 774 774
Continue to review full report at Codecov.
|
4c4085c
to
acf8a58
Compare
snapshot 可能无法覆盖 trigger 和弹层的情况。 |
794ec1b
to
bd9b23e
Compare
close #1267
from https://github.com/adriantoine/enzyme-to-json#user-content-serializer:
First of all, thanks for your contribution! :-)
Please makes sure these boxes are checked before submitting your PR, thank you!
npm run lint
and fix those errors before submitting in order to keep consistent code style.This change is