Skip to content

Commit

Permalink
stop console.warn from getting logged during testing (#1378)
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Buono <joebuono@amazon.com>
  • Loading branch information
joebuono and Joe Buono authored Feb 22, 2022
1 parent a23ffa9 commit 040daa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/primitives/Tabs/__tests__/Tabs.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('Tabs: ', () => {
];
const warningMessage =
'Amplify UI: <Tabs> component only accepts <TabItem> as children.';
const spy = jest.spyOn(console, 'warn');
const spy = jest.spyOn(console, 'warn').mockImplementation();

invalidChildren.forEach((child) => {
render(
Expand Down

0 comments on commit 040daa2

Please sign in to comment.