refactor: move all dashboard's files into a client folder

This commit is contained in:
Nicolas Meienberger 2022-12-25 10:35:44 +01:00 committed by Nicolas Meienberger
parent 80fbddaa9c
commit 34e6ff33e1
187 changed files with 45 additions and 45 deletions

View file

@ -1,6 +1,6 @@
import { graphql } from 'msw';
import React from 'react';
import { render, screen, waitFor } from '../../../../tests/test-utils';
import { render, screen, waitFor } from '../../../../../tests/test-utils';
import { server } from '../../../mocks/server';
import { AuthProvider } from './AuthProvider';

View file

@ -1,6 +1,6 @@
import { rest } from 'msw';
import React from 'react';
import { render, screen, waitFor } from '../../../../tests/test-utils';
import { render, screen, waitFor } from '../../../../../tests/test-utils';
import { server } from '../../../mocks/server';
import { StatusProvider } from './StatusProvider';

View file

@ -1,5 +1,5 @@
import React from 'react';
import { act, render, renderHook, screen, waitFor } from '../../../../tests/test-utils';
import { act, render, renderHook, screen, waitFor } from '../../../../../tests/test-utils';
import { useToastStore } from '../../../state/toastStore';
import { ToastProvider } from './ToastProvider';

View file

@ -1,5 +1,5 @@
import React from 'react';
import { render } from '../../../../tests/test-utils';
import { render } from '../../../../../tests/test-utils';
import { DataGrid } from './DataGrid';
import { DataGridItem } from './DataGridItem';

View file

@ -1,5 +1,5 @@
import React from 'react';
import { fireEvent, render } from '../../../../tests/test-utils';
import { fireEvent, render } from '../../../../../tests/test-utils';
import { EmptyPage } from './EmptyPage';
describe('<EmptyPage />', () => {

View file

@ -1,5 +1,5 @@
import React from 'react';
import { fireEvent, render, screen } from '../../../../tests/test-utils';
import { fireEvent, render, screen } from '../../../../../tests/test-utils';
import { ErrorPage } from './ErrorPage';
describe('ErrorPage', () => {

View file

@ -1,5 +1,5 @@
import React from 'react';
import { fireEvent, render, renderHook, screen } from '../../../../tests/test-utils';
import { fireEvent, render, renderHook, screen } from '../../../../../tests/test-utils';
import { useUIStore } from '../../../state/uiStore';
import { Header } from './Header';

View file

@ -1,7 +1,7 @@
import React from 'react';
import '@testing-library/jest-dom/extend-expect';
import { Input } from './Input';
import { fireEvent, render, waitFor } from '../../../../tests/test-utils';
import { fireEvent, render, waitFor } from '../../../../../tests/test-utils';
describe('Input', () => {
it('should render without errors', () => {

View file

@ -1,6 +1,6 @@
import React from 'react';
import '@testing-library/jest-dom/extend-expect';
import { fireEvent, render } from '../../../../tests/test-utils';
import { fireEvent, render } from '../../../../../tests/test-utils';
import { Modal } from './Modal';
import { ModalBody } from './ModalBody';
import { ModalFooter } from './ModalFooter';

View file

@ -1,6 +1,6 @@
import { useRouter } from 'next/router';
import React from 'react';
import { render } from '../../../../tests/test-utils';
import { render } from '../../../../../tests/test-utils';
import { NavBar } from './NavBar';
jest.mock('next/router', () => ({

View file

@ -3,7 +3,7 @@ import React from 'react';
import '@testing-library/jest-dom/extend-expect';
import { Switch } from './Switch';
import { fireEvent, render } from '../../../../tests/test-utils';
import { fireEvent, render } from '../../../../../tests/test-utils';
describe('Switch', () => {
it('renders the label', () => {

View file

@ -1,5 +1,5 @@
import React from 'react';
import { fireEvent, render } from '../../../../tests/test-utils';
import { fireEvent, render } from '../../../../../tests/test-utils';
import { Toast } from './Toast';
describe('Toast', () => {

Some files were not shown because too many files have changed in this diff Show more