-
Notifications
You must be signed in to change notification settings - Fork 4
chore: Update new test-utils documenter #83
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #83 +/- ##
==========================================
+ Coverage 91.96% 92.04% +0.07%
==========================================
Files 15 15
Lines 909 918 +9
Branches 265 273 +8
==========================================
+ Hits 836 845 +9
Misses 73 73 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
||
| export interface TestUtilsVariantOptions { | ||
| root: string; | ||
| extraExports?: Array<string>; |
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.
Extra exports could be different for DOM and selectors code, this is why it is a separate config for each
| defaultValue: getDefaultValue(extractDeclaration(parameter)), | ||
| }; | ||
| }), | ||
| inheritedFrom: getInheritedFrom(declaration, className), |
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.
Changed fields order to maintain compatibility with previous snapshot tests
| const declaration = extractDeclaration(property); | ||
| const declaration = property.valueDeclaration; | ||
| if (!declaration) { | ||
| throw new Error(`Unexpected member on ${className} – ${property.getName()}`); |
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.
This line is not covered in tests. Because typescript says valueDeclaration could be undefined, but it always exists in our cases
Issue #, if available:
Description of changes:
Follow up for #77, some compatibility fixes with the old code
extraExportsoption to allow non-wrapper class export, for examplecreateWrapperfunctionBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.