Skip to content

Commit a4f4e77

Browse files
authored
UIDS-211 Add arrow to Tooltip component (#212)
1 parent 3e177ee commit a4f4e77

File tree

8 files changed

+989
-224
lines changed

8 files changed

+989
-224
lines changed

spec/Storyshots.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
import initStoryshots from '@storybook/addon-storyshots';
2+
import './__mocks__/reactDomMock';
23

34
initStoryshots();

spec/__mocks__/reactDomMock.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// See: https://github.com/facebook/react/issues/11565
2+
// This appears to be a bug with React when testing modals
3+
// with react-test-renderer
4+
jest.mock('react-dom', () => {
5+
const original = jest.requireActual('react-dom');
6+
7+
return {
8+
...original,
9+
createPortal: (node) => node,
10+
};
11+
});

0 commit comments

Comments
 (0)