Skip to content

Commit

Permalink
fix: error thrown from jest-axe (#59)
Browse files Browse the repository at this point in the history
affects: @medly/jest-config-react
  • Loading branch information
gmukul01 authored Aug 22, 2021
1 parent 48380c3 commit 8e55a9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/jest-config-react/setupAfterEnv.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ beforeAll(() => {
}
originalError.call(console, ...args);
};
const { getComputedStyle } = window;
window.getComputedStyle = elt => getComputedStyle(elt);
});

afterAll(() => {
Expand Down

0 comments on commit 8e55a9a

Please sign in to comment.