diff --git a/packages/app-next/src/App.test.tsx b/packages/app-next/src/App.test.tsx index 047c9821b5..b3cef58fe1 100644 --- a/packages/app-next/src/App.test.tsx +++ b/packages/app-next/src/App.test.tsx @@ -14,9 +14,13 @@ * limitations under the License. */ -import React from 'react'; import { renderWithEffects } from '@backstage/test-utils'; +jest.mock('@backstage/plugin-graphiql', () => ({ + ...jest.requireActual('@backstage/plugin-graphiql'), + GraphiQLIcon: () => null, +})); + describe('App', () => { it('should render', async () => { process.env = { @@ -41,8 +45,8 @@ describe('App', () => { ] as any, }; - const { default: App } = await import('./App'); - const rendered = await renderWithEffects(); + const { default: app } = await import('./App'); + const rendered = await renderWithEffects(app); expect(rendered.baseElement).toBeInTheDocument(); }); });