Step 8.7: Introduce focus-visible import where needed to repair tests

There is an import in `MatrixChat` which no longer gets executed when we don't skin the entire app, so bring it in manually.
This commit is contained in:
Travis Ralston 2022-03-24 20:37:52 -06:00
parent b2b818a780
commit 661b8d595c
3 changed files with 3 additions and 1 deletions

View file

@ -19,6 +19,7 @@ import { mount } from 'enzyme';
import { Room } from 'matrix-js-sdk/src/matrix';
import { mocked } from 'jest-mock';
import { act } from 'react-dom/test-utils';
import 'focus-visible'; // to fix context menus
import SpaceContextMenu from '../../../../src/components/views/context_menus/SpaceContextMenu';
import MatrixClientContext from '../../../../src/contexts/MatrixClientContext';