diff --git a/jest.config.js b/jest.config.js
index cd7e6c5..35412a6 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -1,4 +1,5 @@
module.exports = {
+ preset: 'ts-jest',
collectCoverage: true,
collectCoverageFrom: ['src/**/*.js', '!src/**/stories/*'],
coverageDirectory: './coverage/',
diff --git a/src/Routes/DefaultPage/DefaultPage.tsx b/src/Routes/DefaultPage/DefaultPage.tsx
index 9cd268b..cc4e84f 100644
--- a/src/Routes/DefaultPage/DefaultPage.tsx
+++ b/src/Routes/DefaultPage/DefaultPage.tsx
@@ -47,11 +47,7 @@ const Header = () => {
);
};
-interface EmptyContentProps {
- isLoading: boolean;
-}
-
-const EmptyContent = (props: EmptyContentProps) => {
+const EmptyContent = () => {
// FIXME Update this link in the future
const linkLearnMoreAbout = 'https://access.redhat.com/articles/1586893';
const navigate = useNavigate();
@@ -277,7 +273,7 @@ const DefaultPage = () => {
const emptyContent = (
<>
-
+
>
);
diff --git a/src/Routes/DetailPage/Components/DetailGeneral/DetailGeneral.test.tsx b/src/Routes/DetailPage/Components/DetailGeneral/DetailGeneral.test.tsx
index 7479daa..af8e5c6 100644
--- a/src/Routes/DetailPage/Components/DetailGeneral/DetailGeneral.test.tsx
+++ b/src/Routes/DetailPage/Components/DetailGeneral/DetailGeneral.test.tsx
@@ -1 +1,15 @@
-@import '~@redhat-cloud-services/frontend-components-utilities/styles/variables';
\ No newline at end of file
+import React from 'react';
+import { render } from '@testing-library/react';
+import '@testing-library/jest-dom';
+import { DetailGeneral } from './DetailGeneral';
+import { AppContextProvider } from '../../../../AppContext';
+
+test('expect sample-component to render children', () => {
+ render(
+
+
+
+ );
+// expect(screen.getByRole('heading')).toHaveTextContent('Name');
+// expect(screen.getByRole('heading')).toHaveTextContent('Location');
+});
diff --git a/src/Routes/DetailPage/Components/DetailServers/DetailServers.test.tsx b/src/Routes/DetailPage/Components/DetailServers/DetailServers.test.tsx
index 7479daa..00e9191 100644
--- a/src/Routes/DetailPage/Components/DetailServers/DetailServers.test.tsx
+++ b/src/Routes/DetailPage/Components/DetailServers/DetailServers.test.tsx
@@ -1 +1,10 @@
-@import '~@redhat-cloud-services/frontend-components-utilities/styles/variables';
\ No newline at end of file
+import React from 'react';
+import { render } from '@testing-library/react';
+import '@testing-library/jest-dom';
+import { DetailServers } from './DetailServers';
+
+test('expect sample-component to render children', () => {
+ render();
+// expect(screen.getByRole('heading')).toHaveTextContent('Name');
+// expect(screen.getByRole('heading')).toHaveTextContent('Location');
+});
diff --git a/src/Routes/DetailPage/Components/DetailServers/DetailServers.tsx b/src/Routes/DetailPage/Components/DetailServers/DetailServers.tsx
index 378938e..9730cb8 100644
--- a/src/Routes/DetailPage/Components/DetailServers/DetailServers.tsx
+++ b/src/Routes/DetailPage/Components/DetailServers/DetailServers.tsx
@@ -1,7 +1,8 @@
-import { Flex, FlexItem, Stack, StackItem, TextInputGroupUtilities } from '@patternfly/react-core';
+import { Flex, FlexItem, Stack, StackItem } from '@patternfly/react-core';
import React from 'react';
import { Domain } from '../../../../Api';
import { TableComposable, Tbody, Th, Thead, Tr } from '@patternfly/react-table';
+import { InputFilterServer } from '../FilterField/filter-field';
interface DetailServersProps {
domain?: Domain;
@@ -21,12 +22,12 @@ export const DetailServers = (props: DetailServersProps) => {
-
+
-
+
Name |