Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
brianseeders committed Dec 9, 2021
1 parent da33a3a commit b2152fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/kbn-test/src/jest/utils/enzyme_helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function getOptions(context = {}, childContextTypes = {}, props = {}) {
* When using @kbn/i18n `injectI18n` on components, props.intl is required.
*/
// This function is exported solely to fix the types output in TS 4.5.2, likely a bug
// Otherwise, InjectedIntl is missing from the output
export function nodeWithIntlProp<T>(
node: ReactElement<T>
): ReactElement<T & { intl: InjectedIntl }> {
Expand Down

0 comments on commit b2152fd

Please sign in to comment.