Skip to content

Commit

Permalink
Refactor timeout to jest.json
Browse files Browse the repository at this point in the history
  • Loading branch information
atomicgamedeveloper committed Aug 7, 2024
1 parent a605bee commit 0c78ccb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions client/jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"lcov",
"json"
],
"testTimeout": 15000,
"collectCoverageFrom": [
"src/**/*.{ts,tsx}"
],
Expand Down
2 changes: 1 addition & 1 deletion client/test/integration/Routes/Account.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: [] } });
Expand Down
2 changes: 1 addition & 1 deletion client/test/integration/Routes/DigitalTwins.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
2 changes: 1 addition & 1 deletion client/test/integration/Routes/Library.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
2 changes: 1 addition & 1 deletion client/test/integration/Routes/Workbench.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0c78ccb

Please sign in to comment.