Closed sam-bunger closed 1 year ago
St.:grey_question: |
Category | Percentage | Covered / Total |
---|---|---|---|
π’ | Statements | 94.17% (-0.05% π») |
1050/1115 |
π’ | Branches | 88.31% (-0.64% π») |
491/556 |
π’ | Functions | 95.39% (+1.03% πΌ) |
207/217 |
π’ | Lines | 95.56% (+0.15% πΌ) |
990/1036 |
39 tests passing in 5 suites.
Report generated by π§ͺjest coverage report action from 8193cedc217f133d61fac51992cec7fc9fd05702
not sure why that test is failing, testing out rn
Patch coverage: 95.75
% and project coverage change: +0.06
:tada:
Comparison is base (
e6015ac
) 95.12% compared to head (8193ced
) 95.18%.
:mega: This organization is not using Codecovβs GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Ooo more test coverage!
I renamed the Flattener
class to TypeExpander
. I did this because I feel like expanding
is a better word to describe what the user see happening to these types. So now if the user want's a type to be fully expanded, they add the @expand tag in their JSDocs.
FlatteningExpansion SupportThis serves to flatten certain complex typescript types for the purpose of parsing a much simpler typescript AST.
To do this, I created a
Flattener
class which is responsible for flattening types and recompiling the code to create a newts.Program
object.How to use
Add the flag
--experimentalTypeExpansion
or-f
Tests
experimentalTypeExpansion
flag.Additional changes
type NullFoo = { bar: string | null; // This field will be treated at optional in kotlin }