-
Notifications
You must be signed in to change notification settings - Fork 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
test(typings): additional tests for typings and fixes #1624
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1624 +/- ##
=======================================
Coverage 99.74% 99.74%
=======================================
Files 141 141
Lines 2398 2398
=======================================
Hits 2392 2392
Misses 6 6
Continue to review full report at Codecov.
|
@@ -5,7 +5,9 @@ import Checkbox from 'src/modules/Checkbox/Checkbox' | |||
import * as common from 'test/specs/commonTests' | |||
|
|||
describe('FormCheckbox', () => { | |||
common.isConformant(FormCheckbox) | |||
common.isConformant(FormCheckbox, { | |||
ignoredProps: ['type'], |
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.
Nit: given that the conformance test covers many things, can we rename this option to specify that it only ignores the prop in typings?
Perhaps ignoreTypingsProps
or similar?
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.
Yes, it's a good suggestion. I will fix it in evening
Just one comment regarding the option name. |
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.
@levithomason I've updated option name, so I think that we're ready to go 🚌
Released in |
Ref #1621
This PR adds two features:
[key: string]: any;
signature inComponentProps
ignoredProps
option, with can skip props from typings (like inFormRadio.d.ts
)Also, fixes known issues and adds tests for
Portal
andPopup
like in aModal
component