X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/3c7e3cdc547ad5468421e1c049daa94b0d4b8bc0..e1e17729d024637f9f3392611c9a59dc31e5db23:/src/views-components/token-dialog/token-dialog.test.tsx diff --git a/src/views-components/token-dialog/token-dialog.test.tsx b/src/views-components/token-dialog/token-dialog.test.tsx index 4d1412d8..d2ff77e3 100644 --- a/src/views-components/token-dialog/token-dialog.test.tsx +++ b/src/views-components/token-dialog/token-dialog.test.tsx @@ -2,6 +2,14 @@ // // SPDX-License-Identifier: AGPL-3.0 +// This mocks react-copy-to-clipboard's dependency module to avoid warnings +// from jest when running tests. As we're not testing copy-to-clipboard, it's +// safe to just mock it. +// https://github.com/nkbt/react-copy-to-clipboard/issues/106#issuecomment-605227151 +jest.mock('copy-to-clipboard', () => { + return jest.fn(); +}); + import React from 'react'; import { Button } from '@material-ui/core'; import { mount, configure } from 'enzyme';