Reorganize frontend and install Craco to alias modules (#190)
This commit is contained in:
@ -2,10 +2,12 @@ import { expect } from '@storybook/jest';
|
||||
import type { Meta } from '@storybook/react';
|
||||
import { userEvent, within } from '@storybook/testing-library';
|
||||
|
||||
import People from '../People';
|
||||
import { graphqlMocks } from '~/testing/graphqlMocks';
|
||||
|
||||
import { People } from '../People';
|
||||
|
||||
import { Story } from './People.stories';
|
||||
import { render } from './shared';
|
||||
import { graphqlMocks } from '../../../testing/graphqlMocks';
|
||||
|
||||
const meta: Meta<typeof People> = {
|
||||
title: 'Pages/People/FilterBy',
|
||||
|
||||
@ -1,16 +1,18 @@
|
||||
import { expect } from '@storybook/jest';
|
||||
import type { Meta } from '@storybook/react';
|
||||
import { userEvent, within } from '@storybook/testing-library';
|
||||
import { graphql } from 'msw';
|
||||
|
||||
import { GraphqlQueryCompany } from '@/companies/interfaces/company.interface';
|
||||
import { graphqlMocks } from '~/testing/graphqlMocks';
|
||||
import { fetchOneFromData } from '~/testing/mock-data';
|
||||
import { mockedPeopleData } from '~/testing/mock-data/people';
|
||||
import { sleep } from '~/testing/sleep';
|
||||
|
||||
import { People } from '../People';
|
||||
|
||||
import People from '../People';
|
||||
import { Story } from './People.stories';
|
||||
import { render } from './shared';
|
||||
import { mockedPeopleData } from '../../../testing/mock-data/people';
|
||||
import { sleep } from '../../../testing/sleep';
|
||||
import { graphqlMocks } from '../../../testing/graphqlMocks';
|
||||
import { graphql } from 'msw';
|
||||
import { fetchOneFromData } from '../../../testing/mock-data';
|
||||
import { GraphqlQueryCompany } from '../../../interfaces/entities/company.interface';
|
||||
|
||||
const meta: Meta<typeof People> = {
|
||||
title: 'Pages/People/Input',
|
||||
|
||||
@ -2,10 +2,12 @@ import { expect } from '@storybook/jest';
|
||||
import type { Meta } from '@storybook/react';
|
||||
import { userEvent, within } from '@storybook/testing-library';
|
||||
|
||||
import People from '../People';
|
||||
import { graphqlMocks } from '~/testing/graphqlMocks';
|
||||
|
||||
import { People } from '../People';
|
||||
|
||||
import { Story } from './People.stories';
|
||||
import { render } from './shared';
|
||||
import { graphqlMocks } from '../../../testing/graphqlMocks';
|
||||
|
||||
const meta: Meta<typeof People> = {
|
||||
title: 'Pages/People/SortBy',
|
||||
|
||||
@ -1,9 +1,10 @@
|
||||
import type { Meta, StoryObj } from '@storybook/react';
|
||||
|
||||
import People from '../People';
|
||||
import { graphqlMocks } from '~/testing/graphqlMocks';
|
||||
|
||||
import { People } from '../People';
|
||||
|
||||
import { render } from './shared';
|
||||
import { graphqlMocks } from '../../../testing/graphqlMocks';
|
||||
|
||||
const meta: Meta<typeof People> = {
|
||||
title: 'Pages/People',
|
||||
|
||||
@ -1,12 +1,13 @@
|
||||
import { RecoilRoot } from 'recoil';
|
||||
import { ThemeProvider } from '@emotion/react';
|
||||
import { MemoryRouter } from 'react-router-dom';
|
||||
import { ApolloProvider } from '@apollo/client';
|
||||
import { ThemeProvider } from '@emotion/react';
|
||||
import { RecoilRoot } from 'recoil';
|
||||
|
||||
import { lightTheme } from '../../../layout/styles/themes';
|
||||
import { FullHeightStorybookLayout } from '../../../testing/FullHeightStorybookLayout';
|
||||
import { mockedClient } from '../../../testing/mockedClient';
|
||||
import People from '../People';
|
||||
import { lightTheme } from '@/ui/layout/styles/themes';
|
||||
import { FullHeightStorybookLayout } from '~/testing/FullHeightStorybookLayout';
|
||||
import { mockedClient } from '~/testing/mockedClient';
|
||||
|
||||
import { People } from '../People';
|
||||
|
||||
export function render() {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user