Fixed Error: Not implemented: window.computedStyle(elt, pseudoElt) console error in frontend tests. (#11633)

This commit is contained in:
Nick Taylor 2020-11-26 16:55:33 -05:00 committed by GitHub
parent d623157eee
commit 6feb2351e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,11 @@ const organizations = [
];
describe('<OrganizationPicker />', () => {
beforeAll(() => {
// TODO: Remove this once https://github.com/nickcolley/jest-axe/issues/147 is fixed.
window.getComputedStyle = () => {};
});
it('should have no a11y violations', async () => {
const { container } = render(
<OrganizationPicker