Skip to content

Commit b6265c4

Browse files
committed
Ignore focus in AccordionItemHeading testing coverage
1 parent 5e53707 commit b6265c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/AccordionItemHeading.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ export class AccordionItemHeading extends React.PureComponent<Props> {
3333
this.props.toggleExpanded();
3434
}
3535

36+
/* The following block is ignored from test coverage because at time
37+
* time of writing Jest/react-testing-library can not assert 'focus'
38+
* functionality.
39+
*/
40+
// istanbul ignore next
3641
if (evt.target instanceof HTMLElement) {
3742
switch (keyCode) {
3843
case keycodes.HOME: {

0 commit comments

Comments
 (0)