diff --git a/plugins/airbrake/src/extensions.test.tsx b/plugins/airbrake/src/extensions.test.tsx
index db8670ac50..5532621848 100644
--- a/plugins/airbrake/src/extensions.test.tsx
+++ b/plugins/airbrake/src/extensions.test.tsx
@@ -15,11 +15,23 @@
*/
import React from 'react';
import { EntityAirbrakeContent } from './extensions';
-import { renderInTestApp } from '@backstage/test-utils';
+import { renderInTestApp, TestApiProvider } from '@backstage/test-utils';
+import { airbrakeApiRef, MockAirbrakeApi } from './api';
+import { rootRouteRef } from './routes';
describe('The Airbrake entity', () => {
it('should render the content properly', async () => {
- const rendered = await renderInTestApp();
+ const rendered = await renderInTestApp(
+
+
+ ,
+ {
+ mountedRoutes: {
+ '/': rootRouteRef,
+ },
+ routeEntries: ['/'],
+ },
+ );
expect(rendered.getByText('ChunkLoadError')).toBeInTheDocument();
});
});