Skip to content

Commit

Permalink
🚚(frontend) factories/joanie as joanieLegacy
Browse files Browse the repository at this point in the history
We'll implement a api client generated from joanie's openApi schema.
The current client's type factories needs to change place.
  • Loading branch information
rlecellier committed Mar 6, 2024
1 parent b009ed9 commit 1439011
Show file tree
Hide file tree
Showing 101 changed files with 128 additions and 100 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import countries from 'i18n-iso-countries';
import { CunninghamProvider } from '@openfun/cunningham-react';
import userEvent, { UserEvent } from '@testing-library/user-event';
import { Address } from 'types/Joanie';
import { AddressFactory } from 'utils/test/factories/joanie';
import { AddressFactory } from 'utils/test/factories/joanieLegacy';
import { changeSelect, clearSelect } from 'components/Form/test-utils';
import AddressForm from './index';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, StoryObj } from '@storybook/react';
import { StorybookHelper } from 'utils/StorybookHelper';
import { AddressFactory } from 'utils/test/factories/joanie';
import { AddressFactory } from 'utils/test/factories/joanieLegacy';
import AddressForm from '.';

export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { PropsWithChildren } from 'react';
import { CunninghamProvider } from '@openfun/cunningham-react';
import userEvent, { UserEvent } from '@testing-library/user-event';
import { RichieContextFactory as mockRichieContextFactory } from 'utils/test/factories/richie';
import { AddressFactory } from 'utils/test/factories/joanie';
import { AddressFactory } from 'utils/test/factories/joanieLegacy';
import { SessionProvider } from 'contexts/SessionContext';
import type * as Joanie from 'types/Joanie';
import { createTestQueryClient } from 'utils/test/createTestQueryClient';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { IntlProvider } from 'react-intl';
import fetchMock from 'fetch-mock';
import { QueryStateFactory } from 'utils/test/factories/reactQuery';
import { RichieContextFactory as mockRichieContextFactory } from 'utils/test/factories/richie';
import { CredentialOrderFactory } from 'utils/test/factories/joanie';
import { CredentialOrderFactory } from 'utils/test/factories/joanieLegacy';
import { createTestQueryClient } from 'utils/test/createTestQueryClient';
import JoanieSessionProvider from 'contexts/SessionContext/JoanieSessionProvider';
import { Props } from './AbstractContractFrame';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
ContractFactory,
CourseProductRelationFactory,
OrganizationFactory,
} from 'utils/test/factories/joanie';
} from 'utils/test/factories/joanieLegacy';
import { createTestQueryClient } from 'utils/test/createTestQueryClient';
import JoanieSessionProvider from 'contexts/SessionContext/JoanieSessionProvider';
import { isCourseProductRelation } from 'types/Joanie';
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/js/components/ContractStatus/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { render, screen } from '@testing-library/react';
import { PropsWithChildren } from 'react';
import { IntlProvider, createIntl } from 'react-intl';
import { faker } from '@faker-js/faker';
import { ContractFactory } from 'utils/test/factories/joanie';
import { ContractFactory } from 'utils/test/factories/joanieLegacy';
import { DEFAULT_DATE_FORMAT } from 'hooks/useDateFormat';
import ContractStatus from '.';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import userEvent from '@testing-library/user-event';
import { QueryClientProvider } from '@tanstack/react-query';
import fetchMock from 'fetch-mock';
import { faker } from '@faker-js/faker';
import { ContractFactory, CredentialOrderFactory } from 'utils/test/factories/joanie';
import { ContractFactory, CredentialOrderFactory } from 'utils/test/factories/joanieLegacy';
import { RichieContextFactory as mockRichieContextFactory } from 'utils/test/factories/richie';
import { createTestQueryClient } from 'utils/test/createTestQueryClient';
import JoanieApiProvider from 'contexts/JoanieApiContext';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type * as Joanie from 'types/Joanie';
import { PaymentProviders } from 'types/Joanie';
import { handle as mockHandle } from 'utils/errors/handle';
import { RichieContextFactory as mockRichieContextFactory } from 'utils/test/factories/richie';
import { PaymentFactory } from 'utils/test/factories/joanie';
import { PaymentFactory } from 'utils/test/factories/joanieLegacy';
import PaymentInterface from '.';

jest.mock('./PayplugLightbox', () => ({
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/js/components/PaymentButton/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
OrderGroupFactory,
CourseLightFactory,
EnrollmentFactory,
} from 'utils/test/factories/joanie';
} from 'utils/test/factories/joanieLegacy';
import { PAYMENT_SETTINGS } from 'settings';
import type * as Joanie from 'types/Joanie';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/js/components/PurchaseButton/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
CourseLightFactory,
EnrollmentFactory,
ProductFactory,
} from 'utils/test/factories/joanie';
} from 'utils/test/factories/joanieLegacy';
import { SessionProvider } from 'contexts/SessionContext';
import { createTestQueryClient } from 'utils/test/createTestQueryClient';
import { ProductType } from 'types/Joanie';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Meta, StoryObj } from '@storybook/react';
import { ProductFactory } from 'utils/test/factories/joanie';
import { ProductFactory } from 'utils/test/factories/joanieLegacy';
import PurchaseButton from '.';

export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { IntlProvider } from 'react-intl';
import RegisteredAddress from 'components/RegisteredAddress/index';
import type { Address } from 'types/Joanie';
import { noop } from 'utils';
import { AddressFactory } from 'utils/test/factories/joanie';
import { AddressFactory } from 'utils/test/factories/joanieLegacy';

describe('RegisteredAddress', () => {
const Wrapper = ({ children }: PropsWithChildren<{}>) => (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, StoryObj } from '@storybook/react';
import { StorybookHelper } from 'utils/StorybookHelper';
import { AddressFactory } from 'utils/test/factories/joanie';
import { AddressFactory } from 'utils/test/factories/joanieLegacy';
import RegisteredAddress from '.';

export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { fireEvent, getByRole, getByText, render } from '@testing-library/react'
import { PropsWithChildren } from 'react';
import { IntlProvider } from 'react-intl';
import { CreditCard } from 'types/Joanie';
import { CreditCardFactory } from 'utils/test/factories/joanie';
import { CreditCardFactory } from 'utils/test/factories/joanieLegacy';
import { RegisteredCreditCard } from '.';

describe('RegisteredCreditCard', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
AddressFactory,
CreditCardFactory,
CourseLightFactory,
} from 'utils/test/factories/joanie';
} from 'utils/test/factories/joanieLegacy';
import { SessionProvider } from 'contexts/SessionContext';
import { Address, CreditCard, Order, Product } from 'types/Joanie';
import { createTestQueryClient } from 'utils/test/createTestQueryClient';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
CourseLightFactory,
CredentialOrderFactory,
ProductFactory,
} from 'utils/test/factories/joanie';
} from 'utils/test/factories/joanieLegacy';
import { SaleTunnelContext } from 'components/SaleTunnel/context';
import { SaleTunnelStepResume } from '.';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
CourseLightFactory,
CredentialProductFactory,
EnrollmentFactory,
} from 'utils/test/factories/joanie';
} from 'utils/test/factories/joanieLegacy';
import { User } from 'types/User';
import { Maybe } from 'types/utils';
import { SaleTunnelContext, SaleTunnelContextType } from 'components/SaleTunnel/context';
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/js/components/SaleTunnel/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Fragment } from 'react';
import { IntlProvider } from 'react-intl';
import { QueryClientProvider } from '@tanstack/react-query';
import { RichieContextFactory as mockRichieContextFactory } from 'utils/test/factories/richie';
import { CourseLightFactory, ProductFactory } from 'utils/test/factories/joanie';
import { CourseLightFactory, ProductFactory } from 'utils/test/factories/joanieLegacy';
import { SessionProvider } from 'contexts/SessionContext';
import { createTestQueryClient } from 'utils/test/createTestQueryClient';
import SaleTunnel from '.';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { MemoryRouter } from 'react-router-dom';
import userEvent from '@testing-library/user-event';
import { QueryClientProvider } from '@tanstack/react-query';
import fetchMock from 'fetch-mock';
import { ContractFactory, CredentialOrderFactory } from 'utils/test/factories/joanie';
import { ContractFactory, CredentialOrderFactory } from 'utils/test/factories/joanieLegacy';
import { RichieContextFactory as mockRichieContextFactory } from 'utils/test/factories/richie';
import { createTestQueryClient } from 'utils/test/createTestQueryClient';
import { useOmniscientOrders } from 'hooks/useOrders';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
ContractFactory,
CredentialOrderFactory,
NestedCredentialOrderFactory,
} from 'utils/test/factories/joanie';
} from 'utils/test/factories/joanieLegacy';
import { RichieContextFactory as mockRichieContextFactory } from 'utils/test/factories/richie';
import { createTestQueryClient } from 'utils/test/createTestQueryClient';
import JoanieApiProvider from 'contexts/JoanieApiContext';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
UserFactory,
} from 'utils/test/factories/richie';
import JoanieSessionProvider from 'contexts/SessionContext/JoanieSessionProvider';
import { CourseListItemFactory } from 'utils/test/factories/joanie';
import { CourseListItemFactory } from 'utils/test/factories/joanieLegacy';
import { createTestQueryClient } from 'utils/test/createTestQueryClient';
import { mockPaginatedResponse } from 'utils/test/mockPaginatedResponse';
import { expectNoSpinner } from 'utils/test/expectSpinner';
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/js/hooks/useContractAbilities/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { renderHook } from '@testing-library/react';
import useContractAbilities from 'hooks/useContractAbilities/index';
import { ContractFactory } from 'utils/test/factories/joanie';
import { ContractFactory } from 'utils/test/factories/joanieLegacy';
import { ContractActions } from 'utils/AbilitiesHelper/types';

describe('useContractAbilities', () => {
Expand Down
5 changes: 4 additions & 1 deletion src/frontend/js/hooks/useCourseProductUnion/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ import { createTestQueryClient } from 'utils/test/createTestQueryClient';
import { SessionProvider } from 'contexts/SessionContext';
import { getRoutesLegacy } from 'api/joanie';
import { mockPaginatedResponse } from 'utils/test/mockPaginatedResponse';
import { CourseListItemFactory, CourseProductRelationFactory } from 'utils/test/factories/joanie';
import {
CourseListItemFactory,
CourseProductRelationFactory,
} from 'utils/test/factories/joanieLegacy';
import { useCourseProductUnion } from '.';

jest.mock('utils/context', () => ({
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/js/hooks/useCourses/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
RichieContextFactory as mockRichieContextFactory,
UserFactory,
} from 'utils/test/factories/richie';
import { CourseListItemFactory } from 'utils/test/factories/joanie';
import { CourseListItemFactory } from 'utils/test/factories/joanieLegacy';
import JoanieSessionProvider from 'contexts/SessionContext/JoanieSessionProvider';
import { createTestQueryClient } from 'utils/test/createTestQueryClient';
import { User } from 'types/User';
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/js/hooks/useCreditCards/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import fetchMock from 'fetch-mock';
import { PropsWithChildren } from 'react';
import { act, renderHook, waitFor } from '@testing-library/react';
import { RichieContextFactory as mockRichieContextFactory } from 'utils/test/factories/richie';
import { CreditCardFactory } from 'utils/test/factories/joanie';
import { CreditCardFactory } from 'utils/test/factories/joanieLegacy';
import { useCreditCard, useCreditCards } from 'hooks/useCreditCards/index';
import { SessionProvider } from 'contexts/SessionContext';
import { Deferred } from 'utils/test/deferred';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { renderHook, waitFor } from '@testing-library/react';
import fetchMock from 'fetch-mock';
import { RichieContextFactory as mockRichieContextFactory } from 'utils/test/factories/richie';
import { OrganizationFactory } from 'utils/test/factories/joanie';
import { OrganizationFactory } from 'utils/test/factories/joanieLegacy';
import { Organization } from 'types/Joanie';
import { JoanieAppWrapper, setupJoanieSession } from 'utils/test/wrappers/JoanieAppWrapper';
import useDefaultOrganizationId from '.';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { handle } from 'utils/errors/handle';
import { Certificate } from 'types/Joanie';
import { SessionProvider } from 'contexts/SessionContext';
import { Deferred } from 'utils/test/deferred';
import { CertificateFactory } from 'utils/test/factories/joanie';
import { CertificateFactory } from 'utils/test/factories/joanieLegacy';
import { HttpStatusCode } from 'utils/errors/HttpError';

jest.mock('utils/errors/handle');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { QueryClientProvider } from '@tanstack/react-query';
import { PropsWithChildren } from 'react';
import { IntlProvider } from 'react-intl';
import { RichieContextFactory as mockRichieContextFactory } from 'utils/test/factories/richie';
import { JoanieUserProfileFactory } from 'utils/test/factories/joanie';
import { JoanieUserProfileFactory } from 'utils/test/factories/joanieLegacy';
import { JoanieUserApiAbilityActions } from 'types/User';
import { JoanieUserProfileActions } from 'utils/AbilitiesHelper/types';
import { createTestQueryClient } from 'utils/test/createTestQueryClient';
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/js/hooks/useProductOrder/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { PropsWithChildren } from 'react';
import { act, renderHook, waitFor } from '@testing-library/react';
import { faker } from '@faker-js/faker';
import { RichieContextFactory as mockRichieContextFactory } from 'utils/test/factories/richie';
import { CourseLightFactory, CredentialOrderFactory } from 'utils/test/factories/joanie';
import { CourseLightFactory, CredentialOrderFactory } from 'utils/test/factories/joanieLegacy';
import { SessionProvider } from 'contexts/SessionContext';
import { Deferred } from 'utils/test/deferred';
import { createTestQueryClient } from 'utils/test/createTestQueryClient';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { IntlProvider } from 'react-intl';
import userEvent, { UserEvent } from '@testing-library/user-event';
import { PropsWithChildren } from 'react';
import { RichieContextFactory as mockRichieContextFactory } from 'utils/test/factories/richie';
import { AddressFactory } from 'utils/test/factories/joanie';
import { AddressFactory } from 'utils/test/factories/joanieLegacy';
import { SessionProvider } from 'contexts/SessionContext';
import { DashboardTest } from 'widgets/Dashboard/components/DashboardTest';
import { LearnerDashboardPaths } from 'widgets/Dashboard/utils/learnerRouteMessages';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from '@testing-library/react';
import { IntlProvider } from 'react-intl';
import { RichieContextFactory as mockRichieContextFactory } from 'utils/test/factories/richie';
import { AddressFactory } from 'utils/test/factories/joanie';
import { AddressFactory } from 'utils/test/factories/joanieLegacy';
import { SessionProvider } from 'contexts/SessionContext';
import { DashboardTest } from 'widgets/Dashboard/components/DashboardTest';
import { LearnerDashboardPaths } from 'widgets/Dashboard/utils/learnerRouteMessages';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, StoryObj } from '@storybook/react';
import { StorybookHelper } from 'utils/StorybookHelper';
import { AddressFactory } from 'utils/test/factories/joanie';
import { AddressFactory } from 'utils/test/factories/joanieLegacy';
import { DashboardEditAddress } from './DashboardEditAddress';

export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { QueryClientProvider } from '@tanstack/react-query';
import fetchMock from 'fetch-mock';
import { findByText } from '@storybook/testing-library';
import { RichieContextFactory as mockRichieContextFactory } from 'utils/test/factories/richie';
import { AddressFactory } from 'utils/test/factories/joanie';
import { AddressFactory } from 'utils/test/factories/joanieLegacy';
import { SessionProvider } from 'contexts/SessionContext';
import { DashboardTest } from 'widgets/Dashboard/components/DashboardTest';
import { LearnerDashboardPaths } from 'widgets/Dashboard/utils/learnerRouteMessages';
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/js/pages/DashboardCertificates/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { History, HistoryContext } from 'hooks/useHistory';
import { SessionProvider } from 'contexts/SessionContext';
import { DashboardTest } from 'widgets/Dashboard/components/DashboardTest';
import { LearnerDashboardPaths } from 'widgets/Dashboard/utils/learnerRouteMessages';
import { CertificateFactory } from 'utils/test/factories/joanie';
import { CertificateFactory } from 'utils/test/factories/joanieLegacy';
import { HttpStatusCode } from 'utils/errors/HttpError';

jest.mock('utils/context', () => ({
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/js/pages/DashboardContracts/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { History, HistoryContext } from 'hooks/useHistory';
import { SessionProvider } from 'contexts/SessionContext';
import { DashboardTest } from 'widgets/Dashboard/components/DashboardTest';
import { LearnerDashboardPaths } from 'widgets/Dashboard/utils/learnerRouteMessages';
import { ContractFactory } from 'utils/test/factories/joanie';
import { ContractFactory } from 'utils/test/factories/joanieLegacy';

jest.mock('utils/context', () => ({
__esModule: true,
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/js/pages/DashboardCourses/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
CourseProductRelationFactory,
EnrollmentFactory,
CredentialOrderFactory,
} from 'utils/test/factories/joanie';
} from 'utils/test/factories/joanieLegacy';
import { createTestQueryClient } from 'utils/test/createTestQueryClient';
import { LearnerDashboardPaths } from 'widgets/Dashboard/utils/learnerRouteMessages';
import { CourseLight, CourseProductRelation, Enrollment, CredentialOrder } from 'types/Joanie';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Meta, StoryObj } from '@storybook/react';
import { CreditCardFactory } from 'utils/test/factories/joanie';
import { CreditCardFactory } from 'utils/test/factories/joanieLegacy';
import { CreditCard, CreditCardBrand } from 'types/Joanie';
import { CreditCardBrandLogo } from './CreditCardBrandLogo';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { QueryClientProvider } from '@tanstack/react-query';
import { IntlProvider } from 'react-intl';
import fetchMock from 'fetch-mock';
import { RichieContextFactory as mockRichieContextFactory } from 'utils/test/factories/richie';
import { CreditCardFactory } from 'utils/test/factories/joanie';
import { CreditCardFactory } from 'utils/test/factories/joanieLegacy';
import { DashboardTest } from 'widgets/Dashboard/components/DashboardTest';
import { SessionProvider } from 'contexts/SessionContext';
import { LearnerDashboardPaths } from 'widgets/Dashboard/utils/learnerRouteMessages';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, StoryObj } from '@storybook/react';
import { StorybookHelper } from 'utils/StorybookHelper';
import { CreditCardFactory } from 'utils/test/factories/joanie';
import { CreditCardFactory } from 'utils/test/factories/joanieLegacy';
import { DashboardEditCreditCard } from './DashboardEditCreditCard';

export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { IntlProvider } from 'react-intl';
import { faker } from '@faker-js/faker';
import { RichieContextFactory as mockRichieContextFactory } from 'utils/test/factories/richie';
import { CreditCardFactory } from 'utils/test/factories/joanie';
import { CreditCardFactory } from 'utils/test/factories/joanieLegacy';
import { SessionProvider } from 'contexts/SessionContext';
import { DashboardTest } from 'widgets/Dashboard/components/DashboardTest';
import { LearnerDashboardPaths } from 'widgets/Dashboard/utils/learnerRouteMessages';
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/js/pages/DashboardOrderLayout/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { IntlProvider } from 'react-intl';
import fetchMock from 'fetch-mock';
import { RichieContextFactory as mockRichieContextFactory } from 'utils/test/factories/richie';
import { CredentialOrder } from 'types/Joanie';
import { CredentialOrderFactory, TargetCourseFactory } from 'utils/test/factories/joanie';
import { CredentialOrderFactory, TargetCourseFactory } from 'utils/test/factories/joanieLegacy';
import { mockCourseProductWithOrder } from 'utils/test/mockCourseProductWithOrder';
import { LearnerDashboardPaths } from 'widgets/Dashboard/utils/learnerRouteMessages';
import { createTestQueryClient } from 'utils/test/createTestQueryClient';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
ContractFactory,
CourseProductRelationFactory,
OrganizationFactory,
} from 'utils/test/factories/joanie';
} from 'utils/test/factories/joanieLegacy';
import { expectNoSpinner } from 'utils/test/expectSpinner';
import { expectBannerError } from 'utils/test/expectBanner';
import { HttpStatusCode } from 'utils/errors/HttpError';
Expand Down
Loading

0 comments on commit 1439011

Please sign in to comment.