✅ test: use dault imports from index files

This commit is contained in:
2024-02-17 15:11:59 +01:00
parent 10a3516274
commit 1164a6241d
3 changed files with 3 additions and 3 deletions
@@ -3,7 +3,7 @@ import userEvent from '@testing-library/user-event'
import { renderWithRouter as render } from 'components/utils/tests'
import ContactPage from './ContactPage'
import ContactPage from '.'
vi.stubGlobal('open', vi.fn())
describe('ContactPage', () => {
@@ -1,7 +1,7 @@
import { screen, cleanup, render } from '@testing-library/react'
import { RouterProvider, createMemoryRouter } from 'react-router-dom'
import ErrorPage from './ErrorPage'
import ErrorPage from '.'
// Tests
describe('Renders ErrorPage correctly', async () => {
@@ -2,7 +2,7 @@ import { screen } from '@testing-library/react'
import { renderWithRouter as render } from 'components/utils/tests'
import MainPage from './MainPage'
import MainPage from '.'
// Tests
describe('Main page', async () => {