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 and Hypnosphi committed Mar 6, 2018
1 parent bdb8892 commit db26ce7
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 db26ce7

Please sign in to comment.