Skip to content

Commit

Permalink
chore(frontend/tests): timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
JoltCode committed Jan 8, 2025
1 parent 5adf963 commit 6dc8762
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import '@testing-library/jest-dom/vitest';
import { configure } from '@testing-library/react';
import "vitest-canvas-mock"

configure({ asyncUtilTimeout: 8000 });
configure({ asyncUtilTimeout: 12000 });

// vi.mock('mapbox-gl/dist/mapbox-gl');

Expand Down
5 changes: 1 addition & 4 deletions frontend/src/views/tests/userDetail.test.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@

import { render, screen, act, waitFor } from '@testing-library/react';
import { MemoryRouter, Route, Routes } from 'react-router-dom';

import { UserDetail } from '../userDetail';
import { store } from '../../store';
import {
Expand Down Expand Up @@ -58,8 +56,7 @@ describe('User Detail Component', () => {
</MemoryRouter>,
);

// TODO: Fix this test
// expect(await screen.findByText('Somebody')).toBeInTheDocument();
expect(await screen.findByText('Somebody')).toBeInTheDocument();
expect(screen.getByText(/time spent mapping/i)).toBeInTheDocument();
expect(await screen.findByTitle('American Red Cross')).toBeInTheDocument();
expect(await screen.findByText('Philippines')).toBeInTheDocument();
Expand Down

0 comments on commit 6dc8762

Please sign in to comment.