Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(defaultPropsHandler): Fully support forwardRef (#350)
* test(failing): defaultPropsHandler and forwardRef * feat(defaultPropsHandler): support forwardRef # Conflicts: # src/handlers/__tests__/__snapshots__/defaultPropsHandler-test.js.snap
- Loading branch information
Showing
3 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
src/handlers/__tests__/__snapshots__/defaultPropsHandler-test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`defaultPropsHandler forwardRef resolves default props in the parameters 1`] = ` | ||
Object { | ||
"foo": Object { | ||
"defaultValue": Object { | ||
"computed": false, | ||
"value": "'bar'", | ||
}, | ||
}, | ||
} | ||
`; | ||
|
||
exports[`defaultPropsHandler forwardRef resolves defaultProps 1`] = ` | ||
Object { | ||
"foo": Object { | ||
"defaultValue": Object { | ||
"computed": false, | ||
"value": "'baz'", | ||
}, | ||
}, | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters