-
Notifications
You must be signed in to change notification settings - Fork 2.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
Add conformance test for event callback typing: consistent-callback-type
#30200
Changes from all commits
637015b
5a8ac74
5607c7e
44df977
eec1a11
49ebeef
c5d6a60
4a28221
9bfaadf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "minor", | ||
"comment": "feat: add 'consistent-callback-type' test, rename 'consistent-callback-args' to 'consistent-callback-args-legacy'", | ||
"packageName": "@fluentui/react-conformance", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "minor", | ||
"comment": "feat: add type helper for callback props", | ||
"packageName": "@fluentui/react-utilities", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -8,7 +8,12 @@ describe('Accordion', () => { | |||||||||||||||||
Component: Accordion, | ||||||||||||||||||
displayName: 'Accordion', | ||||||||||||||||||
// Accordion does not have own styles | ||||||||||||||||||
disabledTests: ['make-styles-overrides-win', 'consistent-callback-args'], | ||||||||||||||||||
disabledTests: ['make-styles-overrides-win', 'consistent-callback-args-legacy'], | ||||||||||||||||||
testOptions: { | ||||||||||||||||||
'consistent-callback-type': { | ||||||||||||||||||
ignoreProps: ['onToggle'], | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why are some handlers being ignored ? what's the plan here , will it be fixed in a follow up PR ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The plan is to enable the new type There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The existing callbacks will be verified by the legacy test There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so existing v9 packages (this one in particular), doesnt contain any old callback types ?
Comment on lines
+11
to
+14
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The way these conformance tests are set up seems like a configuration headache. It's confusing when the IMO we should keep a single E.g.
Suggested change
The config option could be named |
||||||||||||||||||
}, | ||||||||||||||||||
}, | ||||||||||||||||||
}); | ||||||||||||||||||
|
||||||||||||||||||
/** | ||||||||||||||||||
|
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.
As you renaming
consistent-callback-args
, it should be a major bump (as it's a breaking change).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.
react-conformance is on version 0.x.x. I think minor here is for breaking change.