-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
chore(types): add test for rendering SVG elements #834
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 307bd41:
|
Codecov Report
@@ Coverage Diff @@
## master #834 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 4
Lines 140 140
Branches 28 28
=========================================
Hits 140 140 Continue to review full report at Codecov.
|
I wonder if there's a way to get TypeScript test coverage using a logical specification DSL |
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.
Thanks!
🎉 This PR is included in version 11.2.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Why was this released as a minor version bump? This breaks the following code: function findSomething(element: HTMLElement) {...}
const {container} = render(...);
findSomething(container);
// ~~~~~~~~~
// Argument of type 'Element' is not assignable to parameter of type 'HTMLElement'.
// Type 'Element' is missing the following properties from type 'HTMLElement': accessKey, accessKeyLabel, autocapitalize, // dir, and 107 more.(2345) This is a breaking change, and should have waited until the major version 12 |
Sorry to hear you're having trouble with the latest patch. You probably mean #833. The PR you commented on did not affect published code. Note that any change is potentially backwards incompatible. Especially type related changes are very likely to break some code. This change in particular was bug fix. If your code relied on a bug then the change is backwards incompatible for you. Note that any However, we cannot always make allowances in these instances. Otherwise we would need to release any change with a major version. |
Oh correct, I mixed these two PRs up. I assumed that the signature of the public API remains unchanged. E.g. if Do you have any suggestions on how to protect against unexpected changes? The pattern is very common, there is a real example (last line in the file) which made me respond to this PR. |
Working on a fix right now. |
@just-boris Subscribe to #868 for further updates. |
What: Adding regression tests for #830 (implemented in #833)
Why: It helps to have a regression test for the original issue when adding a fix
How: TypeScript type test based on sample code in #830
Checklist:
docs site N/A