Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Nov 21, 2024
1 parent 06fc597 commit 34289e0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function WizardBody(props: WizardBodyProps): JSX.Element {
placement: 'top',
})
const [asset, setAsset] = useState<string | null>(null)
const [loaded, setLoaded] = useState(false)
const [loaded, setLoaded] = useState<boolean>(false)

useLayoutEffect(() => {
const videoAsset = ONBOARDING_ANIMATIONS[stepNumber]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { renderWithProviders } from '../../../__testing-utils__'
import { SelectFixtures } from '../SelectFixtures'
import type { WizardFormState, WizardTileProps } from '../types'

vi.mock('react-player/lazy')
const render = (props: React.ComponentProps<typeof SelectFixtures>) => {
return renderWithProviders(<SelectFixtures {...props} />, {
i18nInstance: i18n,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { SelectModules } from '../SelectModules'
import type { WizardFormState, WizardTileProps } from '../types'

vi.mock('../../../feature-flags/selectors')
vi.mock('react-player/lazy')

const render = (props: React.ComponentProps<typeof SelectModules>) => {
return renderWithProviders(<SelectModules {...props} />, {
i18nInstance: i18n,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ vi.mock('../../../feature-flags/selectors')
vi.mock('../../../organisms')
vi.mock('../../../labware-defs/actions')
vi.mock('../utils')
vi.mock('react-player/lazy')
const mockLocation = vi.fn()

vi.mock('react-router-dom', async importOriginal => {
Expand Down

0 comments on commit 34289e0

Please sign in to comment.