Skip to content

Commit

Permalink
Update types, linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad-Simso committed Oct 29, 2024
1 parent 063c1f5 commit c950bab
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/packages/shared/src/mocks/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import type { Organization } from 'app-shared/types/Organization';
import type { KubernetesDeployment } from 'app-shared/types/api/KubernetesDeployment';
import type { DeploymentsResponse } from 'app-shared/types/api/DeploymentsResponse';
import type { AppRelease } from 'app-shared/types/AppRelease';
import { Option } from 'app-shared/types/Option';
import type { Option } from 'app-shared/types/Option';

export const build: Build = {
id: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { CodeListTableEditor } from './CodeListTableEditor';
import { textMock } from '@studio/testing/mocks/i18nMock';
import { PreviewContext, type PreviewContextProps } from 'app-development/contexts/PreviewContext';
import { queriesMock } from 'app-shared/mocks/queriesMock';
import userEvent, { UserEvent } from '@testing-library/user-event';
import userEvent, { type UserEvent } from '@testing-library/user-event';

// Test data:
const mockComponent: FormComponent<ComponentType.Dropdown> = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { EditCodeList } from './EditCodeList';
import { render, screen, waitFor } from '@testing-library/react';
import { ComponentType } from 'app-shared/types/ComponentType';
import { optionListIdsMock } from '../../../../../testing/mocks';
import userEvent, { UserEvent } from '@testing-library/user-event';
import userEvent, { type UserEvent } from '@testing-library/user-event';
import { textMock } from '@studio/testing/mocks/i18nMock';
import { createQueryClientMock } from 'app-shared/mocks/queryClientMock';
import type { FormComponent } from '../../../../../types/FormComponent';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import type { Option } from 'app-shared/types/Option';
import type { CodeListItem } from '@studio/components';
import { convertOptionsListToCodeListItemList } from './conversionUtils';
import { convertCodeListItemListToOptionsList } from './conversionUtils';
import {
convertOptionsListToCodeListItemList,
convertCodeListItemListToOptionsList,
} from './conversionUtils';

// Test data:
const optionsList: Option[] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import { textMock } from '@studio/testing/mocks/i18nMock';
import { ComponentType } from 'app-shared/types/ComponentType';
import type { FormComponent } from '../../../../types/FormComponent';
import type { FormItem } from '../../../../types/FormItem';
import { ServicesContextProps, ServicesContextProvider } from 'app-shared/contexts/ServicesContext';
import {
type ServicesContextProps,
ServicesContextProvider,
} from 'app-shared/contexts/ServicesContext';
import { createQueryClientMock } from 'app-shared/mocks/queryClientMock';
import userEvent from '@testing-library/user-event';
import { queriesMock } from 'app-shared/mocks/queriesMock';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { app, org } from '@studio/testing/testids';
import { queriesMock } from 'app-shared/mocks/queriesMock';
import { renderHookWithProviders } from '../../testing/mocks';
import {
UpdateOptionListMutationArgs,
type UpdateOptionListMutationArgs,
useUpdateOptionListMutation,
} from './useUpdateOptionListMutation';
import type { Option } from 'app-shared/types/Option';
Expand Down

0 comments on commit c950bab

Please sign in to comment.