refactor: move all dashboard's files into a client folder
This commit is contained in:
parent
80fbddaa9c
commit
34e6ff33e1
187 changed files with 45 additions and 45 deletions
|
@ -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';
|
||||
|
|
@ -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';
|
||||
|
|
@ -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';
|
||||
|
|
@ -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';
|
||||
|
|
@ -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 />', () => {
|
|
@ -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', () => {
|
|
@ -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';
|
||||
|
|
@ -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', () => {
|
|
@ -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';
|
|
@ -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', () => ({
|
|
@ -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', () => {
|
|
@ -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
Loading…
Reference in a new issue