Skip to content

Commit

Permalink
feat(cozy-harvest): Prefer use createMockClient for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Merkur39 committed Dec 23, 2024
1 parent 27ee882 commit 26a5e30
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/cozy-harvest-lib/test/AppLike.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import React from 'react'
import { Provider as ReduxProvider } from 'react-redux'

import CozyClient, { CozyProvider as CozyClientProvider } from 'cozy-client'
import {
CozyProvider as CozyClientProvider,
createMockClient
} from 'cozy-client'
import { useCozyDialog } from 'cozy-ui/transpiled/react/CozyDialogs'
import AlertProvider from 'cozy-ui/transpiled/react/providers/Alert'
import { BreakpointsProvider } from 'cozy-ui/transpiled/react/providers/Breakpoints'
Expand All @@ -11,8 +14,7 @@ import I18n from 'cozy-ui/transpiled/react/providers/I18n'
import DialogContext from '../src/components/DialogContext'
import enLocale from '../src/locales/en.json'

const defaultClient = new CozyClient()
defaultClient.ensureStore()
const defaultClient = createMockClient({})

const AppLike = ({
client: clientOption,
Expand Down

0 comments on commit 26a5e30

Please sign in to comment.