diff --git a/packages/core-components/src/components/Button/Button.test.tsx b/packages/core-components/src/components/Button/Button.test.tsx
index e3a1074e6f..805b3b3f10 100644
--- a/packages/core-components/src/components/Button/Button.test.tsx
+++ b/packages/core-components/src/components/Button/Button.test.tsx
@@ -26,10 +26,12 @@ describe('', () => {
const buttonLabel = 'Navigate!';
const { getByText } = render(
wrapInTestApp(
-
- {testString}
} />
+ <>
- ,
+
+ {testString}} />
+
+ >,
),
);
diff --git a/packages/core-components/src/components/Link/Link.test.tsx b/packages/core-components/src/components/Link/Link.test.tsx
index 5cfeaa4869..52e687d2e4 100644
--- a/packages/core-components/src/components/Link/Link.test.tsx
+++ b/packages/core-components/src/components/Link/Link.test.tsx
@@ -33,10 +33,12 @@ describe('', () => {
const linkText = 'Navigate!';
const { getByText } = render(
wrapInTestApp(
-
+ <>
{linkText}
- {testString}} />
- ,
+
+ {testString}} />
+
+ >,
),
);
expect(() => getByText(testString)).toThrow();
@@ -116,8 +118,8 @@ describe('', () => {
const { getByText } = render(
wrapInTestApp(
+ {linkText}
- {linkText}
{testString}} />
,
@@ -141,8 +143,8 @@ describe('', () => {
const { getByText } = render(
wrapInTestApp(
+ {linkText}
- {linkText}
{testString}} />
,
diff --git a/packages/core-components/src/components/TabbedLayout/TabbedLayout.test.tsx b/packages/core-components/src/components/TabbedLayout/TabbedLayout.test.tsx
index 55422faffc..b700739a8b 100644
--- a/packages/core-components/src/components/TabbedLayout/TabbedLayout.test.tsx
+++ b/packages/core-components/src/components/TabbedLayout/TabbedLayout.test.tsx
@@ -16,7 +16,6 @@
import { renderInTestApp, withLogCollector } from '@backstage/test-utils';
import { act, fireEvent } from '@testing-library/react';
import React from 'react';
-import { Route, Routes } from 'react-router';
import { TabbedLayout } from './TabbedLayout';
describe('TabbedLayout', () => {
@@ -59,24 +58,14 @@ describe('TabbedLayout', () => {
it('navigates when user clicks different tab', async () => {
const { getByText, queryByText, queryAllByRole } = await renderInTestApp(
-
-
-
- tabbed-test-content
-
-
- tabbed-test-content-2
-
-
- }
- />
- ,
+
+
+ tabbed-test-content
+
+
+ tabbed-test-content-2
+
+ ,
);
const secondTab = queryAllByRole('tab')[1];