Skip to content

Commit

Permalink
Update ProtocolSetupLabware.test.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed Feb 29, 2024
1 parent 2855a85 commit ed01ecf
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,17 @@ import {
mockUseModulesQueryUnknown,
} from '../__fixtures__'

vi.mock('@opentrons/react-api-client')
import type * as ReactApiClient from '@opentrons/react-api-client'

vi.mock('@opentrons/react-api-client', async importOriginal => {
const actual = await importOriginal<typeof ReactApiClient>()
return {
...actual,
useCreateLiveCommandMutation: vi.fn(),
useModulesQuery: vi.fn(),
}
})

vi.mock(
'../../../organisms/LabwarePositionCheck/useMostRecentCompletedAnalysis'
)
Expand Down

0 comments on commit ed01ecf

Please sign in to comment.