✅ test: use dault imports from index files
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user