From 0c78ccb44a7bf5017728cf38e367922cfbb86b51 Mon Sep 17 00:00:00 2001 From: atomicgamedev Date: Wed, 7 Aug 2024 12:27:30 +0200 Subject: [PATCH] Refactor timeout to jest.json --- client/jest.config.json | 1 + client/test/integration/Routes/Account.test.tsx | 2 +- client/test/integration/Routes/DigitalTwins.test.tsx | 2 +- client/test/integration/Routes/Library.test.tsx | 2 +- client/test/integration/Routes/Workbench.test.tsx | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/client/jest.config.json b/client/jest.config.json index a052f0216..520a8bab2 100644 --- a/client/jest.config.json +++ b/client/jest.config.json @@ -15,6 +15,7 @@ "lcov", "json" ], + "testTimeout": 15000, "collectCoverageFrom": [ "src/**/*.{ts,tsx}" ], diff --git a/client/test/integration/Routes/Account.test.tsx b/client/test/integration/Routes/Account.test.tsx index 64d9ba878..f4496191b 100644 --- a/client/test/integration/Routes/Account.test.tsx +++ b/client/test/integration/Routes/Account.test.tsx @@ -20,7 +20,7 @@ describe('Account', () => { await testLayout(); testStaticAccountProfile(mockUser); await testAccountSettings(mockUser); - }, 15000); + }); it('renders the Account page with different amounts of groups', async () => { await setup({ ...mockUser, profile: { ...mockUser.profile, groups: [] } }); diff --git a/client/test/integration/Routes/DigitalTwins.test.tsx b/client/test/integration/Routes/DigitalTwins.test.tsx index 465d0aec6..1ac4bebc5 100644 --- a/client/test/integration/Routes/DigitalTwins.test.tsx +++ b/client/test/integration/Routes/DigitalTwins.test.tsx @@ -41,7 +41,7 @@ describe('Digital Twins', () => { ); expect(iframe).toBeInTheDocument(); expect(iframe).toHaveProperty('src', 'https://example.com/URL_DT'); - }, 15000); + }); it('shows the paragraph of to the selected tab', async () => { await itShowsTheParagraphOfToTheSelectedTab([tabs]); diff --git a/client/test/integration/Routes/Library.test.tsx b/client/test/integration/Routes/Library.test.tsx index cf51abd1f..0ffbbf18a 100644 --- a/client/test/integration/Routes/Library.test.tsx +++ b/client/test/integration/Routes/Library.test.tsx @@ -51,7 +51,7 @@ describe('Library', () => { 'src', `https://example.com/URL_LIBtree/${assetTypeSegment}`, ); - }, 15000); + }); it('shows the paragraph of to the selected tab', async () => { await itShowsTheParagraphOfToTheSelectedTab([assetType, scope]); diff --git a/client/test/integration/Routes/Workbench.test.tsx b/client/test/integration/Routes/Workbench.test.tsx index 11c2877ea..68a4b88f9 100644 --- a/client/test/integration/Routes/Workbench.test.tsx +++ b/client/test/integration/Routes/Workbench.test.tsx @@ -50,7 +50,7 @@ describe('Workbench', () => { await testTool(VSCodeLabel, 'VSCode'); await testTool(jupyterLabLabel, 'JupyterLab'); await testTool(jupyterNotebookLabel, 'Jupyter Notebook'); - }, 15000); + }); it('shows the tooltip when hovering over the tools', async () => { await itShowsTheTooltipWhenHoveringButton(desktopLabel);