Skip to content

Commit

Permalink
modify mock func
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed Mar 1, 2024
1 parent 28b626f commit 1a6d6fd
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ import * as Sessions from '../../../redux/sessions'

import { DeckSetup } from '../DeckSetup'

import type * as OpentronsComponent from '@opentrons/components'

vi.mock('../../../assets/labware/getLabware')
vi.mock('@opentrons/shared-data')
vi.mock(
'@opentrons/components/src/hardware-sim/Deck/RobotWorkSpace',
async importOriginal => {
const actual = (await importOriginal()) as any
const actual = await importOriginal<
typeof OpentronsComponent.RobotWorkSpace
>()
return {
...actual,
RobotWorkSpace: () => <></>,
Expand Down

0 comments on commit 1a6d6fd

Please sign in to comment.