Skip to content

Commit

Permalink
Merge pull request #3111 from tniezg/jest-missing-key-prop-fix
Browse files Browse the repository at this point in the history
Added missing key prop to NoTests component.
  • Loading branch information
danielduan authored Feb 28, 2018
2 parents e22f4ea + ce0e342 commit 5171450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/jest/src/components/Panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const Content = glamorous(({ tests, className }) => (
<div className={className}>
{tests.map(({ name, result }) => {
if (!result) {
return <NoTests>This story has tests configured, but no file was found</NoTests>;
return <NoTests key={name}>This story has tests configured, but no file was found</NoTests>;
}

const successNumber = result.assertionResults.filter(({ status }) => status === 'passed')
Expand Down

0 comments on commit 5171450

Please sign in to comment.