diff --git a/src/matchers/utils.ts b/src/matchers/utils.ts index ffcc9d0c..a8c70ddb 100644 --- a/src/matchers/utils.ts +++ b/src/matchers/utils.ts @@ -87,6 +87,7 @@ export function formatElement( props: defaultMapProps(props), children: childrenToDisplay, }, + // See: https://www.npmjs.com/package/pretty-format#usage-with-options { plugins: [plugins.ReactTestComponent, plugins.ReactElement], printFunctionName: false,